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/testdb@127.0.0.1/testdb directory=DUMP_DIR dumpfile=01_TESTDB_20240101000000.dmp table_exists_action=replace;