Oracle中NLS_CHARACTERSET由AL32UTF8变更为ZHS16GBK

Oracle中NLS_CHARACTERSET由AL32UTF8变更为ZHS16GBK
SELECT * FROM NLS_DATABASE_PARAMETERS;


sqlplus
SQL>conn sys/xxx as sysdba
SQL>SELECT SID,SERIAL# FROM V$SESSION;
SQL>ALTER SYSTEM KILL SESSION '937,29758';

SQL>ALTER SYSTEM ENABLE restricted SESSION;
SQL>ALTER DATABASE CHARACTER SET INTERNAL_USE ZHS16GBK;
SQL>ALTER SYSTEM DISABLE restricted SESSION;

SQL>create user testdb identified by testdb default tablespace USERS quota unlimited on USERS;
SQL>grant create view to testdb;
SQL>grant resource to testdb;
SQL>grant connect to testdb;

SQL>create directory DUMP_DIR AS '/mnt/dpdump';
SQL>grant read,write on directory DUMP_DIR to testdb;

impdp testdb/[email protected]/testdb directory=DUMP_DIR dumpfile=01_TESTDB_20240101000000.dmp table_exists_action=replace; 



你可能感兴趣的:(oracle,数据库)