11.aexport Eng
11.aexport Eng
$ aexport
-----------------------------------------------------------
Altibase Export Script Utility.
Release Version 6.1.1.0
Copyright 2000, ALTIBASE Corporation or its subsidiaries.
All Rights Reserved.
-----------------------------------------------------------
Write Server Name (default:127.0.0.1) :
Write UserID : sys
Write Password : manager
The aexport.properties file
♦ $ALTIBASE_HOME/conf/aexport.properties
♦ File must exist before this utility can be executed.
• Otherwise, the following error will occur:
• [ERR-91066 : Property File Loading Error.(conf/aexport.properties)]
♦ The symbol "#“ indicates a comment inside the configuration file
♦ Two options for setting delimiters when creating an iLoader script:
• - ILOADER_FIELD_TERM = ^
• - ILOADER_ROW_TERM = %n
• Maximum 10 characters long
• Ensure that they do not appear in the data.
• If the above options are commented out, the iLoader shell script created
in aexport will export data in CSV format.
aexport options
Option Description
-tserver The server to which the exported data will later be uploaded
-tport The port number with which to access the destination server
ALTIBASE HDB Character set information
-nls_use (An appropriate character set should be specified if it is expected
that Korean characters are used in comments, etc.)
※–tserver and -tport are not for the local server, but for the destination server,
to which data are uploaded when the script is subsequently executed
Example
♦ Execution in Full DB Mode
$ aexport -s 127.0.0.1 –u sys –p manager
-------------------------------------------------------------
Altibase Export Script Utility.
Release Version 6.1.1.0
Copyright 2000, ALTIBASE Corporation or its
subsidiaries.
All Rights Reserved.
-------------------------------------------------------------
$ ls –al
-rw-r--r-- 1 jjl3 staff 0 Mar 22 15:13 USER1_CRT_DIR.sql
-rw-r--r-- 1 jjl3 staff 0 Mar 22 15:13 USER1_CRT_FK.sql
-rw-r--r-- 1 jjl3 staff 117 Mar 22 15:13 USER1_CRT_INDEX.sql
-rw-r--r-- 1 jjl3 staff 0 Mar 22 15:13 USER1_CRT_LINK.sql
-rw-r--r-- 1 jjl3 staff 0 Mar 22 15:13 USER1_CRT_SEQ.sql
-rw-r--r-- 1 jjl3 staff 0 Mar 22 15:13 USER1_CRT_SYN.sql
-rw-r--r-- 1 jjl3 staff 560 Mar 22 15:13 USER1_CRT_TBL.sql
-rw-r--r-- 1 jjl3 staff 0 Mar 22 15:13 USER1_CRT_TRIG.sql
-rw-r--r-- 1 jjl3 staff 197 Mar 22 15:13 USER1_CRT_USER.sql
-rw-r--r-- 1 jjl3 staff 0 Mar 22 15:13 USER1_CRT_VIEW_PROC.sql
-rw-r--r-- 1 jjl3 staff 134 Mar 22 15:13 run_il_in.sh
-rw-r--r-- 1 jjl3 staff 193 Mar 22 15:13 run_il_out.sh
-rw-r--r-- 1 jjl3 staff 407 Mar 22 15:13 run_is.sh
-rw-r--r-- 1 jjl3 staff 114 Mar 22 15:13 run_is_fk.sh
-rw-r--r-- 1 jjl3 staff 59 Mar 22 15:13 run_is_index.sh
-rw-r--r-- 1 jjl3 staff 57 Mar 22 15:13 run_is_repl.sh
Example
♦ Execution in Object Mode
$ aexport -s 127.0.0.1 -u user1 -p user1 -object user1.t1
-----------------------------------------------------------------
Altibase Export Script Utility.
Release Version 6.1.1.0
Copyright 2000, ALTIBASE Corporation or its subsidiaries.
All Rights Reserved.
-----------------------------------------------------------------
##### TABLE #####
$ ls
user1_t1_CRT.sql
$ aexport -s 127.0.0.1 -u user1 -p user1 -object
user1.t1,user1.v1,user1.proc1
-----------------------------------------------------------------
Altibase Export Script Utility.
Release Version 6.1.1.0
Copyright 2000, ALTIBASE Corporation or its subsidiaries.
All Rights Reserved.
-----------------------------------------------------------------
##### TABLE #####
##### VIEW #####
##### STORED PROCEDURE #####
SQL scripts created using aexport
♦ Full DB Mode: Can only be executed by the SYS user
File Name Description
SYS_CRT_DIR.sql SQL script for creating all directory objects
SYS_CRT_USER.sql SQL script for creating all DB users
SYS_CRT_REP.sql SQL script for creating replication objects
SYS_CRT_SYNONYM.sql SQL script for creating all synonym objects
ALL_CRT_VIEW_PROC.sql SQL script for creating all views and procedures
ALL_CRT_TBS.sql SQL script for creating all tablespaces
ALL_CRT_TBL.sql SQL script for creating all user tables
ALL_CRT_INDEX.sql SQL script for creating all user indexes
ALL_CRT_FK.sql SQL script for creating all user foreign keys
ALL_CRT_TRIG.sql SQL script for creating all user triggers
ALL_CRT_SEQ.sql SQL script for creating all user sequences
SQL script for creating all user Database Link
ALL_CRT_LINK.sql
objects
SQL scripts created using aexport
♦ User Mode: Can be executed by SYS or the designated user
File Name Description
(user_name)_CRT_TBL.sql For creating all of the user’s tables
(user_name)_CRT_INDEX.sql For creating all of the user’s indexes
(user_name)_CRT_FK.sql For creating all of the user’s foreign keys
(user_name)_CRT_TRIG.sql For creating all of the user’s triggers
(user_name)_CRT_SEQ.sql For creating all of the user’s sequences
(user_name)_CRT_LINK.sql For creating all of the user’s Database Link objects