SQL database backup and import scripts

SQL database backup and import scripts

Data output

su - oracle
exp dba_admin/letmein@ORCL file=dba20190905.dmp full=y

Import SQL script
to see Oracle user before the first import character set with oracle database character set is the same:
to view the system character set:

echo $NLS_LANG

See Oracle character sets, executed in sqlplus:

select userenv ('language') from dual;

If not, you need to modify:

vi /home/oracle/.bash_profile

To the last line increase

export NLS_LANG=AMERICAN_AMERICA.AL32UTF8

If there is modification

source /home/oracle/.bash_profile

Start importing

su - oracle
sqlplus dba_admin/letmein
@+sql脚本路径(@/home/oracle/d.sql)

All current user query tables:

select table_name from user_tables;

Guess you like

Origin www.cnblogs.com/isunsine/p/11469536.html