oracle常用操作
Posted 车车
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了oracle常用操作相关的知识,希望对你有一定的参考价值。
cmd命令开始
sqlplus /nolog --访问sqlplus
connect /as sysdba --dba身份登陆
SHUTDOWN IMMEDIATE; --关闭数据库
select * from V$NLS_PARAMETERS; --查看数据库字符集
ORA-12899错误value too large for column
代码如下 复制代码
[email protected]>SHUTDOWN IMMEDIATE;
Database closed.
Database dismounted.
ORACLE instance shut down.
[email protected]>STARTUP MOUNT
ORACLE instance started.
Total System Global Area 939495424 bytes
Fixed Size 2233960 bytes
Variable Size 671091096 bytes
Database Buffers 260046848 bytes
Redo Buffers 6123520 bytes
Database mounted.
[email protected]>ALTER SYSTEM ENABLE RESTRICTED SESSION;
System altered.
Elapsed: 00:00:02.19
[email protected]>ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0;
System altered.
Elapsed: 00:00:00.02
[email protected]>ALTER SYSTEM SET AQ_TM_PROCESSES=0;
System altered.
Elapsed: 00:00:00.01
[email protected]>ALTER DATABASE OPEN;
Database altered.
Elapsed: 00:00:05.09
[email protected]>ALTER DATABASE CHARACTER SET ZHS16GBK ;
ALTER DATABASE CHARACTER SET ZHS16GBK
*
ERROR at line 1:
ORA-00911: 无效字符
Elapsed: 00:00:00.00
---报字符集不兼容,此时用INTERNAL_USE指令不对字符集超集进行检查
代码如下 复制代码
[email protected]>ALTER DATABASE CHARACTER SET INTERNAL_USE ZHS16GBK;
Database altered.
以上是关于oracle常用操作的主要内容,如果未能解决你的问题,请参考以下文章