sqlplus相關命令1 留個記錄
阿新 • • 發佈:2018-12-11
■sqlplus連線 sqlplus aa/[email protected]:1521/ORCL sqlplus aa/[email protected]:1521/ORCL2 ■插入式db連線 sqlplus C##aa/[email protected]:1521/ORCL
■SQLPLUS「sql.log」出力 spool sql.log spool off host dir
■SQLPLUS 執行sql亂碼 chcp 65001 set NLS_LANG=JAPANESE_JAPAN.AL32UTF8
■ORA-12514: [[email protected]
[[email protected] ~]$ lsnrctl start
[[email protected] ~]$ sqlplus / as sysdba
SQL> shutdown immediate SQL> startup
SQL> exit
SQL> sqlplus scott/[email protected]/orcl
SQL> show con_name
# sqlplus / as sysdba SQL> alter system register ;
conn sys as sysdba alter pluggable database pdborcl open; alter session set container = pdborcl;
conn aa/[email protected]:1521/pdborcl