<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>《通过ftp/http拷贝asm中文件》的评论</title>
	<atom:link href="https://www.xifenfei.com/2012/05/%e9%80%9a%e8%bf%87ftp%e6%8b%b7%e8%b4%9dasm%e4%b8%ad%e6%96%87%e4%bb%b6.html/feed" rel="self" type="application/rss+xml" />
	<link>https://www.xifenfei.com/2012/05/%e9%80%9a%e8%bf%87ftp%e6%8b%b7%e8%b4%9dasm%e4%b8%ad%e6%96%87%e4%bb%b6.html</link>
	<description>提供7*24专业数据库(Oracle,SQL Server,MySQL,PostgreSQL等)恢复和技术支持@Tel:17813235971</description>
	<lastBuildDate>Thu, 11 Dec 2025 02:46:14 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>作者：惜分飞</title>
		<link>https://www.xifenfei.com/2012/05/%e9%80%9a%e8%bf%87ftp%e6%8b%b7%e8%b4%9dasm%e4%b8%ad%e6%96%87%e4%bb%b6.html/comment-page-1#comment-806</link>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
		<pubDate>Thu, 03 May 2012 16:18:16 +0000</pubDate>
		<guid isPermaLink="false">https://www.xifenfei.com/?p=3051#comment-806</guid>
		<description><![CDATA[[shell]
Applies to:
Oracle Server - Enterprise Edition - Version: 10.2.0.1 to 11.2.0.3 - Release: 10.2 to 11.2
Linux x86
Linux x86-64
Oracle Server Enterprise Edition - Version: 10.2.0.1 to 11.1.0.7
Goal

Configuration of XDB to be able to use ftp and http protocols to browse and manage ASM directories   
  
Solution
ASM XDB CONFIGURATION

Xdb configuration enable the possibility to use FTP from an ftp session on unix or through a browser on Windows.

Files can be easily moved in/out from ASM this way

It also provides an http interface to easily browse through ASM directories in a graphic environment.

Follow Note: 243554.1 &quot;How to Deinstall and Reinstall XML Database (XDB)&quot; to install XDB.

Configuration steps:

1) As root check that ftp service is running:

# netstat -a &#124; 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=&lt;sid&gt;XDB)&quot; SCOPE=BOTH

     For RAC instances:

ALTER SYSTEM SET siebprod1.dispatchers = &quot;(PROTOCOL=TCP) (SERVICE=&lt;sid1&gt;XDB)&quot; SCOPE=BOTH

ALTER SYSTEM SET siebprod2.dispatchers = &quot;(PROTOCOL=TCP) (SERVICE=&lt;sid2&gt;XDB)&quot; SCOPE=BOTH         

    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:       

lsnrctl stop &lt;LISTENER NAME&gt;
lsnrctl start &lt;LISTENER NAME&gt;

5) Check that the following lines are returned when executing lsnrctl, if they are not you may need to restart your database.

(DESCRIPTION =(ADDRESS = (PROTOCOL = tcp)(HOST = &lt;host&gt;)(PORT = 2100))(Presentation = FTP)(Session = RAW))

(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST = &lt;host&gt;)(PORT = 8080))(Presentation = HTTP)(Session = RAW))

6) Connect to the ftp as follows :

OS&gt; ftp -n
open &lt;host&gt; 2100
user system &lt;password&gt;
cd sys
cd asm
...
...

7) From browser : follow the below

for FTP type the url :--- ftp://&lt;host&gt;:2100/
for HTTP type the url :-- http://&lt;host&gt;:8080/

Enter the user and password as SYSTEM and &lt;password&gt;

Troubleshooting:
If you do not succeed to connect to ftp then  :

a. Check for any invalid XDB owned objects:

        SQL&gt; select count(*) from dba_objects

        where owner=&#039;XDB&#039; and status=&#039;INVALID&#039;;

        COUNT(*)

        ----------

         0

b.  Check DBA_REGISTRY for XDB status:

        SQL&gt;  select comp_name, status, version from DBA_REGISTRY where comp_name=&#039;Oracle XML Database&#039;

          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.
[/shell]]]></description>
		<content:encoded><![CDATA[<pre class="brush: bash; title: ; notranslate">
Applies to:
Oracle Server - Enterprise Edition - Version: 10.2.0.1 to 11.2.0.3 - Release: 10.2 to 11.2
Linux x86
Linux x86-64
Oracle Server Enterprise Edition - Version: 10.2.0.1 to 11.1.0.7
Goal

Configuration of XDB to be able to use ftp and http protocols to browse and manage ASM directories   
  
Solution
ASM XDB CONFIGURATION

Xdb configuration enable the possibility to use FTP from an ftp session on unix or through a browser on Windows.

Files can be easily moved in/out from ASM this way

It also provides an http interface to easily browse through ASM directories in a graphic environment.

Follow Note: 243554.1 &quot;How to Deinstall and Reinstall XML Database (XDB)&quot; to install XDB.

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=&lt;sid&gt;XDB)&quot; SCOPE=BOTH

     For RAC instances:

ALTER SYSTEM SET siebprod1.dispatchers = &quot;(PROTOCOL=TCP) (SERVICE=&lt;sid1&gt;XDB)&quot; SCOPE=BOTH

ALTER SYSTEM SET siebprod2.dispatchers = &quot;(PROTOCOL=TCP) (SERVICE=&lt;sid2&gt;XDB)&quot; SCOPE=BOTH         

    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:       

lsnrctl stop &lt;LISTENER NAME&gt;
lsnrctl start &lt;LISTENER NAME&gt;

5) Check that the following lines are returned when executing lsnrctl, if they are not you may need to restart your database.

(DESCRIPTION =(ADDRESS = (PROTOCOL = tcp)(HOST = &lt;host&gt;)(PORT = 2100))(Presentation = FTP)(Session = RAW))

(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST = &lt;host&gt;)(PORT = 8080))(Presentation = HTTP)(Session = RAW))

6) Connect to the ftp as follows :

OS&gt; ftp -n
open &lt;host&gt; 2100
user system &lt;password&gt;
cd sys
cd asm
...
...

7) From browser : follow the below

for FTP type the url :--- ftp://&lt;host&gt;:2100/
for HTTP type the url :-- http://&lt;host&gt;:8080/

Enter the user and password as SYSTEM and &lt;password&gt;

Troubleshooting:
If you do not succeed to connect to ftp then  :

a. Check for any invalid XDB owned objects:

        SQL&gt; select count(*) from dba_objects

        where owner='XDB' and status='INVALID';

        COUNT(*)

        ----------

         0

b.  Check DBA_REGISTRY for XDB status:

        SQL&gt;  select comp_name, status, version from DBA_REGISTRY where comp_name='Oracle XML Database'

          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.
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
