oracle early practice

    These days due to the epidemic, home office, but the frustration oracle connection at home is too slow card, we have installed the oracle own first top. Because before simply with oracle, and have not been installed oracle, not very understanding encountered many pits in this recording, I hope we have encountered similar problems can be solved.

   First, the installation of Oracle to use this installation package step by step installation, need major database after the installation is complete, the pop-up password management interface, where you can set a password, a user will need this time to unlock the convenience of their own login. I set the scott user, a password set up their own password. In addition sys, system management and so these accounts are accounts that can not be locked, you can also set a password for user sys, etc. here.

    After installation need to do is to create a need and we had the same table space, and accounts, pump data into the local database.

   Create a database of the pump command: create tablespace table space name datafile 'name .dbf' size 1000M;  

   Then create a temporary table space: create temporary tablespace temporary table space name tempfile 'name .dbf' size 1000M;

   Then you need to create a user, assign the newly created table space to the user.

  create user name identified by password default tablespae table space name temporary tablespace temporary table space name;

  Then is the need to empower users, since this is my local again, in order to save, you assign permissions to large relatively easy.

  grant connent, resource, dba to the user.

  The next is to take the data pump into the local database.

  First, use the sys user login Oracle, log in here when sys, user names need to write sys as sysdba, you can log into it.

  Users need to create a directory sys directory,

  create directory name as 'address';

  Then DMP files into the directory you set, and then licensed to the directory catalog database user.

  grant read, write on directory name to the user;

  Then you can exit the oracle, exit;

  Then use data pump dmp file import. In the cmd window,

  impdp user / password @orcl directory = directory directory dumpfile = *** dmp full = y.;

  You can import into a local database.

 

 

 

 

 

 

   

Published 20 original articles · won praise 7 · views 10000 +

Guess you like

Origin blog.csdn.net/qrnhhhh/article/details/104274891