oracle相关

一、oracle备份和还原

            数据库ORCL全部导出:

          exp username/password@localhost :1521/ORCL file=d:\test.dmp  [full=y]

        导出test和sys用户的表:

            exp username/password@localhost :1521/ORCL file=d:\test.dmp  owner=(test,sys)

        导出某几个表

            exp username/password@localhost :1521/ORCL file=d:\test.dmp  tables=(table1,table2)

        将备份导入ORCL数据库

            若数据结构不存在(表)

            imp username/password@localhost :1521/ORCL file=d:\test.dmp [fromuser=user1  touser=user2]

            若数据结构已存在(表)

             imp username/password@localhost :1521/ORCL file=d:\test.dmp [fromuser=user1  touser=user2] ignore=y

            参考:Oracle数据库备份与还原命令

             

你可能感兴趣的:(oracle相关)