Created
September 7, 2023 14:00
-
-
Save ivarkol/12f3302bfeefca913f1ad312bac1b141 to your computer and use it in GitHub Desktop.
Oracle export/import
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Скачать и распаковать архивы | |
https://download.oracle.com/otn_software/linux/instantclient/1920000/instantclient-basic-linux.x64-19.20.0.0.0dbru.zip | |
https://download.oracle.com/otn_software/linux/instantclient/1920000/instantclient-tools-linux.x64-19.20.0.0.0dbru.zip | |
2. выполнить команды | |
export LD_LIBRARY_PATH=/<path_to_instant_client>/instantclient_19_20:${LD_LIBRARY_PATH} | |
export PATH=/<path_to_instant_client>/instantclient_19_20:${PATH} | |
3. экспортировать схему | |
exp <schema_name>/<schema_user_password>@<connection_url> owner=<schema_name> file=filename.dmp | |
4. импортировать схему | |
imp <schema_name>/<schema_user_password>@<connection_url> fromuser=<schema_name> touser=<schema_name> file=filename.dmp | |
например, imp system/oracle@localhost:1521/XE fromuser=SCHEMA_NAME touser=SCHEMA_NAME file=filename.dmp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment