oracle 修改字符集

1. 關閉數據庫sql

shutdown immediate;     //關閉數據庫服務器

2.重啓監聽服務數據庫

C:\Users\Administrator>lsnrctl stop

LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 22-8月 -2018 14:3
0:10

Copyright (c) 1991, 2010, Oracle.  All rights reserved.

正在鏈接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
命令執行成功

C:\Users\Administrator>lsnrctl start

LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 22-8月 -2018 14:3
0:25

Copyright (c) 1991, 2010, Oracle.  All rights reserved.

啓動tnslsnr: 請稍候...

TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Production
系統參數文件爲D:\app\instantclient_10_2\listener.ora
寫入d:\app\administrator\diag\tnslsnr\20180314-120628\listener\alert\log.xml的日
志信息
監聽: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
監聽: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))

正在鏈接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
LISTENER 的 STATUS
------------------------
別名                      LISTENER
版本                      TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Produ
ction
啓動日期                  22-8月 -2018 14:30:28
正常運行時間              0 天 0 小時 0 分 3 秒
跟蹤級別                  off
安全性                    ON: Local OS Authentication
SNMP                      OFF
監聽程序參數文件          D:\app\instantclient_10_2\listener.ora
監聽程序日誌文件          d:\app\administrator\diag\tnslsnr\20180314-120628\list
ener\alert\log.xml
監聽端點概要...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
服務摘要..
服務 "CLRExtProc" 包含 1 個實例。
  實例 "CLRExtProc", 狀態 UNKNOWN, 包含此服務的 1 個處理程序...
命令執行成功

3.登陸oracle安全

C:\Users\Administrator>sqlplus system/123456 as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on 星期三 8月 22 14:30:48 2018

Copyright (c) 1982, 2010, Oracle.  All rights reserved.

已鏈接到空閒例程。

idle>startup mount;
ORACLE 例程已經啓動。

Total System Global Area 1686925312 bytes
Fixed Size                  2176368 bytes
Variable Size            1610615440 bytes
Database Buffers           67108864 bytes
Redo Buffers                7024640 bytes
數據庫裝載完畢。
idle>alter session set sql_trace=true;

會話已更改。

idle>alter system enable restricted session;

系統已更改。

idle>alter system set job_queue_processes=0;

系統已更改。

idle>alter system set aq_tm_processes=0;

系統已更改。

idle>alter database open;

數據庫已更改。

idle>alter database character set internal_use AL32UTF8;

數據庫已更改。

idle>alter session set sql_trace=false;

會話已更改。

idle>shutdown immediate;
數據庫已經關閉。
已經卸載數據庫。
ORACLE 例程已經關閉。
idle>startup;
ORACLE 例程已經啓動。

Total System Global Area 1686925312 bytes
Fixed Size                  2176368 bytes
Variable Size            1610615440 bytes
Database Buffers           67108864 bytes
Redo Buffers                7024640 bytes
數據庫裝載完畢。
數據庫已經打開。
idle>conn scott/123456@orcl
已鏈接。
相關文章
相關標籤/搜索