Re: Informix error 568
Posted in 1998
Both databases need to be in logging mode in order to use in the same
program. Since you are just copying all records you may want
to just script this.
try:
dbaccess <source_dbname> << EOF
unload to "file.out" select * from <table>;EOF
dbaccess <dest_dbname> << EOF
load from "file.out" insert into <table>;EOF
note: I did not test the above. Also, if you have alot of records you could
run into a long transaction with the above and you may need to use
onload/onunload.
-Bill
>
>
>
> Informix IDS 7.30.UC2 on Solaris 2.5.1
>
> I am having one stored procedure which simply do a
> copy of the table from one database to another
> database. The problem is
>
> Database1-logging
> Database2-nologging
>
> If i use the that stored procedure in the above
> mentioned scenarion it gives me error
>
> 568- Cannot reference an external database without
> logging.
>
> I used dbaccess in dtabase1 and issue one select
> query like
>
> select * from database2:tablename>
> It also give me same error. I do not know any
> workaround for this. I would appreciate any help for
> the same.
>
> Sanjeev
>
>
>
> _________________________________________________________
> DO YOU YAHOO!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>