05 Jun, 2011
How to configure XDB for using ftp and http protocols with ASM
Posted by: Mark In: Oracle
Posted from Perth, Western Australia, Australia.
On a recent training course, we discovered how to use FTP and HTTP to view and copy files. The following is an extract from my notes.
Configuring Xdb enables the possibility to use FTP or HTTP to view and copy files from ASM to a file system. Files can be easily moved in our out from ASM.
Configuration steps:
1) As root check that ftp service is running:
# netstat -a | grep ftp
tcp 0 0 *:ftp *:* LISTEN
If no output is returned, start ftp:
# service vsftpd start
Starting vsftpd for vsftpd: [ OK ]
Also configure ftp to start automatically
# chkconfig vsftpd on
2) Configure the FTP and HTTP ports of XDB using:
connect / as sysdba
execute dbms_xdb.sethttpport(8080);
execute dbms_xdb.setftpport(2100);
commit;
to check use:
select dbms_xdb.GETFTPPORT() from dual;
select dbms_xdb.GETHTTPPORT() from dual;
3) Check the dispatchers configuration for xdb, if it is not set set it up, for single instance:
ALTER SYSTEM SET dispatchers = =(PROTOCOL=TCP) (SERVICE=
For RAC instances:
ALTER SYSTEM SET siebprod1.dispatchers = “(PROTOCOL=TCP) (SERVICE=
ALTER SYSTEM SET siebprod2.dispatchers = “(PROTOCOL=TCP) (SERVICE=
If you are not using the default Listener ensure you have set LOCAL_LISTENER in the (init.ora/spfile)
as prescribed for RAC/NON-RAC instances or the end points will not register.
4) Restart the listener: 5) Check that the following lines are returned when executing lsnrctl, if they are not you may need to restart your database. 6) Connect to the ftp as follows : 7) From browser : follow the below b. Check DBA_REGISTRY for XDB status: SQL> select comp_name, status, version from DBA_REGISTRY where comp_name=’Oracle XML Database’
lsnrctl stop
(DESCRIPTION =(ADDRESS = (PROTOCOL = tcp)(HOST =
(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST =
OS> ftp -n
open
user system
cd asm
…
…
for FTP type the url :— ftp://
for HTTP type the url :– http://
Enter the user and password as SYSTEM and
Troubleshooting:
If you do not succeed to connect to ftp then :
a. Check for any invalid XDB owned objects:
SQL> select count(*) from dba_objects
where owner=’XDB’ and status=’INVALID’;
COUNT(*)
———-
0
The results should indicate the correct version and patch in a valid status.
c. Restart database and listener to enable Oracle XML DB protocol access.

We briefly spoke with a real estate agent while looking in her window at properties in the area, some of the houses were selling for between 500k and 18 million dollars. This is where Clint Eastwood lives and was once the Mayor and is also the home of Pebble Beach golf course which is world famous.
It was the headquarters of the original upper Las Californias Province missions headed by Father Junípero Serra from 1770 until his death in 1784. The mission also was the seat of the padre presidente, Father Fermin Francisco de Lasuen. It was destroyed in the mid-19th century, only to be restored beginning in 1884. It remains a parish church today. It is the only one to have its original bell tower dome.





Recent Comments