Unix Technical Forum

SqlPlus by ftp

This is a discussion on SqlPlus by ftp within the Oracle Database forums, part of the Database Server Software category; --> How i can, execute a .sql file by ftp. I tried, sqlplus USER/PASS@SID @ftp://xx.xxx.xx.xxx/mydir/mydir/myfile.sql But, don't work. Thank's ¡¡...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-24-2008, 05:26 PM
daniellopez21
 
Posts: n/a
Default SqlPlus by ftp

How i can, execute a .sql file by ftp.

I tried, sqlplus USER/PASS@SID
@ftp://xx.xxx.xx.xxx/mydir/mydir/myfile.sql

But, don't work.


Thank's ¡¡

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-24-2008, 05:26 PM
bdbafh@gmail.com
 
Posts: n/a
Default Re: SqlPlus by ftp

what version of sqlplus?

I know that http is supported as of 9.2, but haven't kicked the tires
on ftp.

Here is a link to the 10.1 docs on this subject:
http://download-west.oracle.com/docs...3.htm#i2696724

-bdbafh

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-24-2008, 05:26 PM
fitzjarrell@cox.net
 
Posts: n/a
Default Re: SqlPlus by ftp


daniellopez21 wrote:
> How i can, execute a .sql file by ftp.
>
> I tried, sqlplus USER/PASS@SID
> @ftp://xx.xxx.xx.xxx/mydir/mydir/myfile.sql
>
> But, don't work.
>
>
> Thank's ¡¡



Does this work without a login and password:

ftp://xx.xxx.xx.xxx/mydir/mydir/myfile.sql

This may be the source of your problems as anonymous ftp must be
configured for such calls to work.


David Fitzjarrell

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-24-2008, 05:26 PM
Frank van Bortel
 
Posts: n/a
Default Re: SqlPlus by ftp

fitzjarrell@cox.net wrote:
> daniellopez21 wrote:
>
>>How i can, execute a .sql file by ftp.
>>
>>I tried, sqlplus USER/PASS@SID
>>@ftp://xx.xxx.xx.xxx/mydir/mydir/myfile.sql
>>
>>But, don't work.
>>
>>
>>Thank's ¡¡

>
>
>
> Does this work without a login and password:
>
> ftp://xx.xxx.xx.xxx/mydir/mydir/myfile.sql
>
> This may be the source of your problems as anonymous ftp must be
> configured for such calls to work.
>
>
> David Fitzjarrell
>

Apart from that - should it not be:
host ftp://xx.xxx.xx.xxx/mydir/mydir/myfile.sql,
instead of:
@ftp...
?

--
Regards,
Frank van Bortel

Top-posting is one way to shut me up...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-24-2008, 05:27 PM
fitzjarrell@cox.net
 
Posts: n/a
Default Re: SqlPlus by ftp


Frank van Bortel wrote:
> fitzjarrell@cox.net wrote:
> > daniellopez21 wrote:
> >
> >>How i can, execute a .sql file by ftp.
> >>
> >>I tried, sqlplus USER/PASS@SID
> >>@ftp://xx.xxx.xx.xxx/mydir/mydir/myfile.sql
> >>
> >>But, don't work.
> >>
> >>
> >>Thank's ¡¡

> >
> >
> >
> > Does this work without a login and password:
> >
> > ftp://xx.xxx.xx.xxx/mydir/mydir/myfile.sql
> >
> > This may be the source of your problems as anonymous ftp must be
> > configured for such calls to work.
> >
> >
> > David Fitzjarrell
> >

> Apart from that - should it not be:
> host ftp://xx.xxx.xx.xxx/mydir/mydir/myfile.sql,
> instead of:
> @ftp...
> ?
>
> --
> Regards,
> Frank van Bortel
>
> Top-posting is one way to shut me up...


According to the documentation
(http://download-west.oracle.com/docs...3.htm#i2696724)
his syntax is correct. Note the link shows both http and ftp using the
@ shortcut to execute a script. My guess is anonymous ftp is not
enabled, a username and password are not supplied, and the connection
fails and thus the script is never loaded into the buffer.


David Fitzjarrell

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-24-2008, 05:27 PM
Matthias Hoys
 
Posts: n/a
Default Re: SqlPlus by ftp


<fitzjarrell@cox.net> wrote in message
news:1126817414.130355.120220@g47g2000cwa.googlegr oups.com...

Frank van Bortel wrote:
> fitzjarrell@cox.net wrote:
> > daniellopez21 wrote:
> >
> >>How i can, execute a .sql file by ftp.
> >>
> >>I tried, sqlplus USER/PASS@SID
> >>@ftp://xx.xxx.xx.xxx/mydir/mydir/myfile.sql
> >>
> >>But, don't work.
> >>
> >>
> >>Thank's ¡¡

> >
> >
> >
> > Does this work without a login and password:
> >
> > ftp://xx.xxx.xx.xxx/mydir/mydir/myfile.sql
> >
> > This may be the source of your problems as anonymous ftp must be
> > configured for such calls to work.
> >
> >
> > David Fitzjarrell
> >

> Apart from that - should it not be:
> host ftp://xx.xxx.xx.xxx/mydir/mydir/myfile.sql,
> instead of:
> @ftp...
> ?
>
> --
> Regards,
> Frank van Bortel
>
> Top-posting is one way to shut me up...


According to the documentation
(http://download-west.oracle.com/docs...3.htm#i2696724)
his syntax is correct. Note the link shows both http and ftp using the
@ shortcut to execute a script. My guess is anonymous ftp is not
enabled, a username and password are not supplied, and the connection
fails and thus the script is never loaded into the buffer.



Maybe this works :
@ftp://usernameassword@xx.xxx.xx.xxx/mydir/mydir/myfile.sql

Matthias


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-24-2008, 05:27 PM
daniellopez21
 
Posts: n/a
Default Re: SqlPlus by ftp

Tnahk you

With @ftp://usernameassw...@xx.xxx.xx.xxx/mydir/mydir/myfile.sql ,
yes work.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-24-2008, 05:27 PM
daniellopez21
 
Posts: n/a
Default Re: SqlPlus by ftp

Agggssss. i have a problem?¿? :S

This statment work in sqlplus 9.2.0.6.0 in Solaris, but i don't work in
9.2.0.1.0 in Windows 2000.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-24-2008, 05:28 PM
fitzjarrell@cox.net
 
Posts: n/a
Default Re: SqlPlus by ftp


daniellopez21 wrote:
> Agggssss. i have a problem?¿? :S
>
> This statment work in sqlplus 9.2.0.6.0 in Solaris, but i don't work in
> 9.2.0.1.0 in Windows 2000.



This is one reason why you patched the server to 9.2.0.6. You should
also patch the client software.


David Fitzjarrell

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:59 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com