oracle automatically import data can be

Oracle Database automatically import and export, in many places there is a wide range of applications. For example: an Oracle database application system development after the end, if the

To system is installed to the client computer will need to import the initial data to the user's Oracle database.

Recent projects also need to implement the above features, it took time to search experiment, finishing as follows:

To install the initial data should first export the file initial.dmp, and then installed on the client computing on the Oracle, and then execute the batch file

impInitialData.bat (the same directory with the batch file also createuser.sql, initial.dmp two files).

impInitialData.bat reads as follows:

@ echo off

sqlplus system / manager @ createuser

imp system / manager file = initial.dmp fromuser = initialuser

touser = initialuser ignore = y

Above createuser is a sql file extension. With a batch file on the same directory. Which reads:

create user initialuser identified by test;

grant dba, resource, connect to initialuser;

exit;

Added: delete user with: drop user powercc cascade; which powercc the user name.

Briefly explain: @ echo off command after that its not in the command prompt window is displayed. sqlplus as a tool for the Oracle program,

Must first install Oracle before you can use. system / manager for Oracle in a default administrator account, if it is locked or changed password can not be

Used, you can use any other account / password to replace. @ createuser said that the implementation of createuser.sql file. The sql file, create user

xx identified by yy; that yy to create a password for the user xx. grant dba, resource, connect to xx; said the license to the user

xx dba, resource, connect privileges. imp command to import the data, followed by the parameters file that you want to import the database file; fromuser

Indicated that the original export of the database file the user name; touser database that you want to import the user name; ignore that ignore the error.

Approximate method is so that you can then add other commands to perform more complex operations.
  • del.icio.us
  • StumbleUpon
  • Digg
  • TwitThis
  • Mixx
  • Technorati
  • Facebook
  • NewsVine
  • Reddit
  • Google
  • LinkedIn
  • YahooMyWeb

Related Posts of oracle automatically import data can be

  • ORACLE10G full version centos5 installed (the installation has passed)

    ORACLE10G full version centos5 installed (the installation has passed) 1. Centos 5.0 install rn GUI must be installed, it is best not to start selinux rn rn rn 2. . Ready to install the software: (this is very important, is the first installation fai ...

  • SGA extended the principle of 32bit oracle

    SGA extended the principle of 32bit oracle From: http://www.itpub.net/247048.html Because the median 32bitrnoracle restrictions can only visit the oracle process 4g (2 of 32 power) following virtual memory address, the time at a lot of people this is ...

  • High Availability Oracle Flashback

    Brief introduction Flashback Database is a point in time (PIT) restore the database approach. This incomplete recovery strategy can be used to restore the logic because of human error cause damage to the database. At the introduction of 10g, it is de ...

  • An example of the use of TKPROF

    First, view and edit parameters SQL> show parameter max_dump_file_size NAME TYPE VALUE ------------------------------------ ----------- --- --------------------------- max_dump_file_size string UNLIMITED SQL> show parameter user_dump_dest NAME TYPE

  • Diagnosis and principles of order

    SQL> select disk.value "Disk", mem.value "Mem", 2 (disk.value / mem.value) * 100 "Ratio" 3 from v $ sysstat mem, v $ sysstat disk 4 where mem.name = 'sorts (memory)' 5 and disk.name = 'sorts (disk)'; D ...

  • ORACLE 10G dataguard configuration Step by Step

    oracle dataguard

Leave a Reply

Recent
Recent Entries
Tag Cloud
Random Entries
Latest Comments