1. Set up the Oracle XML DB access to the ASM folders:
sqlplus / as sysdba
@?/rdbms/admin/catxdbdbca 7777 8080
Note:
a. This script takes two parameters (port numbers) for the FTP and HTTP services respectively.
2. Look for the datafiles you want to ftp to other DB:
SQL> select file_name from dba_data_files
2 where tablespace_name = 'USERS';
FILE_NAME
-----------------------------------------------
+ORADB_DBF_DG/oradb/datafile/users.272.583155107
SQL> create tablespace TTS datafile '+ORADB_DBF_DG/oradb/datafile/tts_01.dbf' SIZE 50M;
Tablespace created.
SQL> select file_name from dba_data_files
2 where tablespace_name = 'TTS';
FILE_NAME
--------------------------------------
+ORADB_DBF_DG/oradb/datafile/tts_01.dbf
SQL> alter tablespace tts read only;
Tablespace altered.
SQL> exit
3. How do I access ASM files using ftp:
From the local PC:
C:\ASM_FTP_TEST>ftp
ftp> open atlxd215 7777
Connected to atlxd215.
220- atlxd215
Unauthorised use of this FTP server is prohibited and may be subject to civil and criminal prosecution.
220 atlxd215 FTP Server (Oracle XML DB/Oracle Database) ready.
User (atlxd215:(none)): system
331 pass required for SYSTEM
Password:
230 SYSTEM logged in
ftp> bye
From the server:
atlxd215 | ORADB | /sys
> ftp
ftp> open atlxd215 7777
Connected to atlxd215.
220- atlxd215
Unauthorised use of this FTP server is prohibited and may be subject to civil and criminal prosecution.
220 atlxd215 FTP Server (Oracle XML DB/Oracle Database) ready.
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (atlxd215:oracle): system
331 pass required for SYSTEM
Password:
230 SYSTEM logged in
Remote system type is Unix.
ftp> bye
221 QUIT Goodbye.
atlxd215 | ORADB | /sys
Note's:
a. All the asm diskgroup directories should be under /sys/asm directory.
b. Use system DB account to login
4. How to access from the browser:
connect / as sysdba
execute dbms_xdb.sethttpport(8080);
execute dbms_xdb.setftpport(7777);
commit;
for FTP type the url : ftp://atlxd215:7777/
for HTTP type the url: http://atlxd215:8080/
Thursday, January 10, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment