Access blob/ord column from remote database
Hi,
I am using oracle 10.2.
I have two database X and Y and on Y database i have the table B with column ORDDOC.
The db link is created on A to access all tables of B. I can access all tables from B except X.
Could you please advise how can i access table X from B database.
Database - Y
SQL> desc B;
Name Null? Type
ATTACHMENT_ID NOT NULL NUMBER(38)
ATTACHMENT ORDSYS.ORDDOC
SQL>
Database - X
SQL> select * from B@DB_LINK_TRDX2.WORLD;
select * from B@DB_LINK_TRDX2.WORLD
ERROR at line 1:
ORA-22804: remote operations not permitted on object tables or user-defined
type columns
SQL>
Anybody could help pls ?
Kapil wrote:
The document is in different database and used by other schemas as well from that database.
.Net is GUI.Daniel raised a very important point. Moving that document via another database doubles the network load for that operation. And doubles the performance impact on the client.
Is this in any way a sensible thing to do? Most definitely not.
Assuming that the client cannot reach the remote database containing the documents, and that can only be done via the local database, then you need to look at options such as materialised views. Replicate the remote content from the remote database to the local database at regular intervals.
As the data set is large (containing LOB documents), consider fast incremental refreshing (and not pull the entire data set across with each refresh).
Yes, you can write PL/SQL code that grabs the remote document and copies it into a local LOB and then dish that up to the client. But the impact of this on the network and performance are major concerns that need to be thoroughly evaluated first.
Similar Messages
-
Select LONG column from Remote table
Hi to all.
I have the following problem: I can't select a LONG column from remote database, when there are Join operation in the query. Example:
SELECT long_column FROM remote_table@DB
-> that's OK, but:
SELECT long_column FROM remote_table@DB INNER JOIN remote_table2@DB ON ...
-> returns: "ORA-00997: Illegal use of LONG datatype"
I cannot even perform (because there a LONG column in the joined table):
SELECT nonlong_column FROM remote_table@DB INNER JOIN remote_table2@DB ON ...
That's very strange to me because:
SELECT long_column FROM local_table INNER JOIN local_table2 ON ...
-> is OK!
Can someone help me to SELECT a long column from remote in SELECT query with JOIN clause!
Thanks a lot!Hi
"Distributed queries are currently subject to the restriction that all tables locked by a FOR UPDATE clause and all tables with LONG columns selected by the query must be located on the same database. " by otn docs.
I have no idea.
Ott Karesz
http://www.trendo-kft.hu -
Getting error while calling procedure from remote database
When I am trying to call child procedure from remote database I am getting below error:
ORA-02064: distributed operation not supported
ORA-06512: at "NMUSER.NEW_CUST_UPLOAD", line 740
(P.S. on line no 740 I issued "commit;" )
I checked rights,synonym on all the objects they are fine.Oracle Error: ORA-02064
Error Description:
Distributed operation
not supported
Error Cause:
One of the following
unsupported operations was attempted:
1. array execute of a remote update with a subquery that references a dblink,
or
2. an update of a long column with bind variable and an update of a second
column with a subquery that both references a dblink and a bind variable, or
3. a commit is issued in a coordinated session from an RPC procedure call
with OUT parameters or function call.
Cheers,
Manik. -
Display BLOB from remote database
Context: We are offloading documents (pdf) from our OLTP database to a dedicated 'output database.' These documents must be displayed from the application on our OLTP database using a database link. Various posts show that querying a BLOB from a remote database can best be implemented using a query on the remote table and an insert on a local (temporary) table. So far, so good. The idea is to display this BLOB using wpg_docload.download_file.
BUT:
When trying to display the pdf from this global temporary table an error occurs:
ORA-14453: attempt to use a LOB of a temporary table, whose data has already been purged
When trying to display from a normal table and issuing a rollback after wpg_docload.download_file results in another error:
ORA-22922: nonexistent LOB value
When trying to display from a normal table and not removing the record in any way, its works fine. Only I now have a garbage collection issue, because the remote date remain in my local (preferably temporary) table.
It seems to me that mod_plsql needs an active session to display my pdf.
Does anyone have an explanation for this behaviour and maybe a solution for my problem?
Environment:
local: 10.2.0.4.0
remote: 11.1.0.7.0
pdf size: ca. 150kB
code used:
PROCEDURE show_doc (p_nta_id IN NUMBER
,p_sessie IN NUMBER
IS
t_lob BLOB;
t_lob2 BLOB := empty_blob();
t_mime VARCHAR2(100);
BEGIN
-- copy BLOB into local global temp table
INSERT INTO mvs_tmp_notaprint_bestanden
npv_nta_id
, npv_npe_sessie
, mime_type
, bestand
) -- from remote table
SELECT npd.npv_nta_id
,npd.npv_npe_sessie
,npd.mime_type
,npd.bestand
FROM mvs_notaprint_bestanden@marc npd
WHERE npd.npv_nta_id ; = p_nta_id
AND npd.npv_npe_sessie = p_sessie
-- show BLOB from local global temp table
SELECT t.bestand
, t.mime_type
INTO t_lob
, t_mime
FROM mvs_tmp_notaprint_bestanden t
WHERE t.npv_nta_id ; = p_nta_id
AND t.npv_npe_sessie ; = p_sessie
t_lob2 := t_lob; -- buffer BLOB
owa_util.mime_header(t_mime , FALSE );
owa_util.http_header_close;
wpg_docload.download_file(t_lob2);
END show_doc;Andrew,
thank you, the 'preserve rows' did the trick.
Every query from a browser (even in the same browser session) is a new Oracle session, so the copied records in the global temporary table are gone after the page is displayed.
Am I correct in assuming that each call from the browser results in a new Oracle session? I did a few tests and found for each call a different sessionid.
Sincerly,
Arne Suverein
Edited by: Arne Suverein on Aug 18, 2009 3:35 PM -
Getting LONG RAW from remote database
Hi,
I have a table in my local database that has a LONG RAW column . I have another table of similar structure in a remote database (so it has LONG RAW as well). I would like to transfer data including LONG RAW data from the remote database into the local database table using PL/SQL. I know it is not possible to copy LONG RAW over dblink directly. Can anyone suggest an approach to accomplish this?
The local table cannot be changed to BLOB, but I have the flexibility to change the remote table to use BLOB. So, can anyone tell me if the following solution would work. If so, can you shed some light on what PL/SQL libraries to use or can you provide me with some sample code to implement steps 3 and 4 below?:
1. Change the remote table to use BLOB
2. Create a new temporary table with BLOB in the local database.
3. Copy data using PL/SQL from remote BLOB to local temporary table BLOB.
4. Copy data using PL/SQL from BLOB to LONG RAW within the local database from temporary table (w/ BLOB) to the actual target table (w/ LONG RAW).
I think step 3 can be a direct Insert-Select from remote table (I'll try this myself), but not sure how to go about step 4.
Thanks for your help.There is a chapter in the Oracle Application Developer's Guide on calling external procedures
I don't know enough about VB and the available VB APIs to know for sure. I would assume that VB could be configured to generate a DLL with a C call specification. I would also assume that there was a VB API that would allow you to manipulate LONG RAW and BLOB data. Unfortunately, though, I don't know which VB API's have that functionality.
Justin -
Xmltype data can't be copied from remote database
Hi,
I got the following same error when copy table with xmltype from different env:
table localXML(xml xmltype);
insert into localXML select * from remoteXML@romote;
1. run from db tools:
... Physical database connection acquired for: local
12:07:41 [INSERT - 0 row(s), 0.000 secs] [Error Code: 22992, SQL State: 99999] ORA-22992: cannot use LOB locators selected from remote tables
... 1 statement(s) executed, 0 row(s) affected, exec/fetch time: 0.000/0.000 sec [0 successful, 0 warnings, 1 errors]
2. run from sqlplus
ORA-22992: cannot use LOB locators selected from remote tables
The above script runs well if two tables are in same database.
Did any one have solution on this?
Thanks.
JohnThe standard workaround for this one is to create a synonym or such on the be called object and then do the insert selecting via the synonym. Search google for ORA-22992 and "asktom" and see if this workaround for LOB's also works for xmltype (CLOB) columns/tables.
What's your database version and how was the remoteXML table created (DDL) ??? -
Trouble creating forms from remote database
Hi,
We are having problems with connecting to remote databases with portal. We can create reports fine from the remote databases but when we try to create forms, it gives the error:
'This Table does not exist or you do not have the required privileges (WWV-13020)'.
We've created a link to the remote db, and synonyms for each of the tables. I don't understand because it seems we can build reports and other components...just not forms.
If anyone has any ideas as to what the problem could be, any assistance you may provide is greatly appreciated!
Thanks!<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Dmitry Nonkin([email protected]):
Sarah,
It could be dull, but anyway - make sure that you granted all the required grants (INSERT,UPDATE,DELETE) in addition to SELECT to the application schema.
Also, at which step of the wizard you recieve this error?
Thanks,
Dmitry<HR></BLOCKQUOTE>
Dmitry - we're having the same problems...
I've had our DBA team grant us every possible privilage we can find - but I still can't create a form from within the portal to a remote database. The wizard lets me put in the table name, ex. asset.wban_trans@drsrch, and does come up with the proper columns on the layout page of the wizard, but when I click the "Finish" button I get the following errors: Line/Column Error
733/21 PLS-00454: with a returning into clause, the table expression cannot be remote or a subquery
733/9 PL/SQL: SQL Statement ignored
841/16 PLS-00454: with a returning into clause, the table expression cannot be remote or a subquery
841/9 PL/SQL: SQL Statement ignored
The form is then listed in my applications list, but if I try and run it I get the following error:
Error: An unexpected error occurred: ORA-04063: has errors
ORA-04063: package body "PORTAL.FORM_0305092506" has errors
ORA-06508: PL/SQL: could not find program unit being called (WWV-16016)
Thanks for any help....
Christina
null -
How to access a PDF file from Oracle DATABASE SERVER
Hi
I have some pdf files in "\home2\docs" directory in Oracle database server 10g. (OS is Linux) I want to access those pdf files from my client system through Oracle Forms. How is it possible?
Please Help!!!! It is very urgent !!!
Expecting fast response!!!!!
Byehi
Thank u for ur response.
Initially i tried to access pdf file from database server. I didn't get any solution for that. So I copied all my pdf files to Application server which is in Linux environment at "/home2/docs" directory.
I gave the following command for accessing the pdf files kept in Lnux Application Server from Oracle 10g forms in a button press trigger.
web.show_document('http://192.168.1.53:7779/home2/docs/test.pdf');
It says "page cannot be found"
So I copied one of the pdf file named "test.pdf" to "/oracle/oas10g/IasHome/forms90/java" in Linux Application Server . Then the following command
web.show_document('http://192.168.1.53:7779/forms90/java/test.pdf');
has opened the the pdf file in browser.
192.168.1.53 is my Linux Application Server IP. and 7779 is the port.
Actually we have lacs of pdf files. So i cannot keep all the pdf files in "/oracle/oas10g/IasHome/forms90/java" directory in Linux Application Server. And also all the pdf files not in the same directory , "/home2/docs" some of the pdf files r in the subdirectories of "/home2/docs/" like /home2/docs/sub1, /home2/docs/sub2, /home2/docs/sub3 etc.
Then how to configure my "/oracle/oas10g/IasHome/forms90/server/forms90.conf" file for retrieving pdf files from "/home2/docs/" and its subdirectories. Is Anything other than this, required for solving my problems.
Now My PDF files r in LINUX APPLICATION SERVER not in database server.
Please help!! It is VERY URGENT!!! -
How to send e-mail with an attachment from remote database server.???
Hi All,
I have tried the simple mail sending and with the attachment using UTL_SMTP. But the problem is , it is sending the mail with attachment of the file name i give, it takes and creates that file and sends as attachment not from the actual file location. I am trying to attach the file which i stored in remote database server.
The following code I tried. But not worked for attachment
DECLARE
v_From VARCHAR2(80) := '[email protected]';
v_Recipient VARCHAR2(80) := '[email protected]';
v_Subject VARCHAR2(80) := 'test subject';
v_Mail_Host VARCHAR2(30) := 'pop3.somedomain.com';
v_Mail_Conn utl_smtp.Connection;
crlf VARCHAR2(2) := chr(13)||chr(10);
BEGIN
v_Mail_Conn := utl_smtp.Open_Connection(v_Mail_Host, 25);
utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);
utl_smtp.Mail(v_Mail_Conn, v_From);
utl_smtp.Rcpt(v_Mail_Conn, v_Recipient);
utl_smtp.Data(v_Mail_Conn,
'Date: ' || to_char(sysdate, 'Dy, DD Mon YYYY hh24:mi:ss') || crlf ||
'From: ' || v_From || crlf ||
'Subject: '|| v_Subject || crlf ||
'To: ' || v_Recipient || crlf ||
'MIME-Version: 1.0'|| crlf || -- Use MIME mail standard
'Content-Type: multipart/mixed;'|| crlf ||
' boundary="-----SECBOUND"'|| crlf ||
crlf ||
'-------SECBOUND'|| crlf ||
'Content-Type: text/html;'|| crlf ||
'Content-Transfer_Encoding: 7bit'|| crlf ||
crlf ||
'some message text'|| crlf || -- Message body
'more message text'|| crlf ||
crlf ||
'-------SECBOUND'|| crlf ||
'Content-Type: text/html;'|| crlf ||
' name="Fund Authorization report"'|| crlf ||
'Content-Transfer_Encoding: 8bit'|| crlf ||
'Content-Disposition: attachment;'|| crlf ||
' filename="/usr/tmp/Test.html"'|| crlf ||
crlf ||
'HTML Attachment'|| crlf || -- Content of attachment
crlf ||
'-------SECBOUND--' -- End MIME mail
utl_smtp.Quit(v_mail_conn);
EXCEPTION
WHEN utl_smtp.Transient_Error OR utl_smtp.Permanent_Error then
raise_application_error(-20000, 'Unable to send mail: '||sqlerrm);
END;How can I attach a file which is stored in database server and send it in a mail.
Please someone help me in this.
Thanks,
Alaka.Try this code
Regards Salim.
CREATE OR REPLACE TRIGGER EmailOnServerErr AFTER SERVERERROR ON DATABASE
DECLARE
mail_conn UTL_SMTP.connection;
crlf VARCHAR2(2) := chr(13)||chr(10);
msg VARCHAR2(32760);
sid_name VARCHAR2(16);
bdump_dest VARCHAR2(128);
smtp_relay VARCHAR2(32) := 'MyMailRelay';
recipient_address VARCHAR2(64) := '[email protected]';
sender_address VARCHAR2(64) := '[email protected]';
mail_port NUMBER := 25;
log_file_handle UTL_FILE.FILE_TYPE;
log_file_dir VARCHAR2(256) := 'ERR_LOG_DIR';
log_file_name VARCHAR2(256) := 'OracleErrors.log';
maxlinesize NUMBER := 32767;
session_rec sys.v_$session%ROWTYPE;
audit_rec sys.dba_audit_trail%ROWTYPE;
auditing BOOLEAN;
LinesOfSQL BINARY_INTEGER;
offending_sql DBMS_STANDARD.ora_name_list_t;
CURSOR bdump_cur IS
SELECT TRIM(value)
FROM v$parameter
WHERE name = 'background_dump_dest'
CURSOR sid_cur IS
SELECT TRIM(instance_name)
FROM v$instance
CURSOR session_cur IS
SELECT s.*
FROM v$session s
WHERE s.sid = dbms_support.mysid
CURSOR audit_trail_cur(AUDSID IN NUMBER) IS
SELECT *
FROM dba_audit_trail
WHERE sessionid = AUDSID
BEGIN
IF (USER = 'SYSTEM' OR USER = 'SYS') THEN
-- Ignore this error
NULL;
ELSIF IS_SERVERERROR (1034) THEN
-- Ignore this error
NULL;
ELSE
-- get the sid
OPEN sid_cur;
FETCH sid_cur INTO sid_name;
CLOSE sid_cur;
-- get the location of the alert log
OPEN bdump_cur;
FETCH bdump_cur INTO bdump_dest;
CLOSE bdump_cur;
-- get the session information
OPEN session_cur;
FETCH session_cur INTO session_rec;
CLOSE session_cur;
-- get the audit_trail information if it exists
OPEN audit_trail_cur(session_rec.audsid);
FETCH audit_trail_cur INTO audit_rec;
auditing := audit_trail_cur%FOUND;
CLOSE audit_trail_cur;
IF session_rec.program = 'MyProgram.exe' THEN
NULL; -- ignore actions from MyProgram - that's where I do maintenance
ELSE
-- compose the message
msg := 'Subject: Oracle error '||' on '||sid_name||crlf;
msg := msg||'To: '||recipient_address||crlf;
msg := msg||'For more information see the alert log file located at:'||crlf;
msg := msg||bdump_dest||'/alert_'||sid_name||'.log'||crlf;
msg := msg||'or the error log file: $'||log_file_dir||'/'||log_file_name||crlf;
msg := msg||'Error Time='||TO_CHAR(SYSDATE,'DD-Mon-YYYY HH24:MI:SS')||crlf;
msg := msg||DBMS_UTILITY.FORMAT_CALL_STACK||crlf;
LinesOfSQL := sql_txt(offending_sql);
msg := msg||'Offending SQL is:'||crlf;
FOR loop_counter IN offending_sql.FIRST..offending_sql.LAST
LOOP
msg := msg||offending_sql(loop_counter);
END LOOP;
msg := msg||crlf||'----- PL/SQL Error Stack -----'||crlf;
msg := msg||DBMS_UTILITY.FORMAT_ERROR_STACK||crlf;
msg := msg||'V$SESSION.SADDR=' ||session_rec.saddr ||crlf;
msg := msg||'V$SESSION.SID=' ||session_rec.sid ||crlf;
msg := msg||'V$SESSION.SERIAL#=' ||session_rec.serial# ||crlf;
msg := msg||'V$SESSION.AUDSID=' ||session_rec.audsid ||crlf;
msg := msg||'V$SESSION.PADDR=' ||session_rec.paddr ||crlf;
msg := msg||'V$SESSION.USER#=' ||session_rec.user# ||crlf;
msg := msg||'V$SESSION.USERNAME='||session_rec.username||crlf;
msg := msg||'V$SESSION.COMMAND=' ||session_rec.command ||crlf;
msg := msg||'V$SESSION.OWNERID=' ||session_rec.ownerid ||crlf;
msg := msg||'V$SESSION.TADDR=' ||NVL(session_rec.taddr ,'Null')||crlf;
msg := msg||'V$SESSION.LOCKWAIT='||NVL(session_rec.lockwait,'Null')||crlf;
msg := msg||'V$SESSION.STATUS=' ||NVL(session_rec.status ,'Null')||crlf;
msg := msg||'V$SESSION.SERVER=' ||NVL(session_rec.server ,'Null')||crlf;
msg := msg||'V$SESSION.SCHEMA#=' ||session_rec.schema#||crlf;
msg := msg||'V$SESSION.SCHEMANAME=' ||NVL(session_rec.schemaname,'Null')||crlf;
msg := msg||'V$SESSION.OSUSER=' ||NVL(session_rec.osuser ,'Null')||crlf;
msg := msg||'V$SESSION.PROCESS=' ||NVL(session_rec.process ,'Null')||crlf;
msg := msg||'V$SESSION.MACHINE=' ||NVL(session_rec.machine ,'Null')||crlf;
msg := msg||'V$SESSION.TERMINAL=' ||NVL(session_rec.terminal ,'Null')||crlf;
msg := msg||'V$SESSION.PROGRAM=' ||NVL(session_rec.program ,'Null')||crlf;
msg := msg||'V$SESSION.TYPE=' ||NVL(session_rec.type ,'Null')||crlf;
msg := msg||'V$SESSION.SQL_ADDRESS=' ||session_rec.sql_address ||crlf;
msg := msg||'V$SESSION.SQL_HASH_VALUE=' ||NVL(TO_CHAR(session_rec.sql_hash_value) ,'Null')||crlf;
msg := msg||'V$SESSION.PREV_SQL_ADDR=' ||session_rec.prev_sql_addr||crlf;
msg := msg||'V$SESSION.PREV_HASH_VALUE='||NVL(TO_CHAR(session_rec.prev_hash_value),'Null')||crlf;
msg := msg||'V$SESSION.MODULE=' ||NVL(session_rec.module ,'Null')||crlf;
msg := msg||'V$SESSION.MODULE_HASH='||NVL(TO_CHAR(session_rec.module_hash),'Null')||crlf;
msg := msg||'V$SESSION.ACTION=' ||NVL(session_rec.action ,'Null')||crlf;
msg := msg||'V$SESSION.ACTION_HASH='||NVL(TO_CHAR(session_rec.action_hash),'Null')||crlf;
msg := msg||'V$SESSION.CLIENT_INFO='||NVL(session_rec.client_info ,'Null')||crlf;
msg := msg||'V$SESSION.FIXED_TABLE_SEQUENCE='||NVL(TO_CHAR(session_rec.fixed_table_sequence),'Null')||crlf;
msg := msg||'V$SESSION.ROW_WAIT_OBJ#=' ||NVL(TO_CHAR(session_rec.row_wait_obj#) ,'Null')||crlf;
msg := msg||'V$SESSION.ROW_WAIT_FILE#=' ||NVL(TO_CHAR(session_rec.row_wait_file#) ,'Null')||crlf;
msg := msg||'V$SESSION.ROW_WAIT_BLOCK#='||NVL(TO_CHAR(session_rec.row_wait_block#),'Null')||crlf;
msg := msg||'V$SESSION.ROW_WAIT_ROW#=' ||NVL(TO_CHAR(session_rec.row_wait_row#) ,'Null')||crlf;
msg := msg||'V$SESSION.LOGON_TIME=' ||NVL(TO_CHAR(session_rec.logon_time,'DD-Mon-YYYY HH24:MI:SS'),'Null')||crlf;
msg := msg||'V$SESSION.LAST_CALL_ET=' ||NVL(TO_CHAR(session_rec.last_call_et) ,'Null')||crlf;
msg := msg||'V$SESSION.PDML_ENABLED=' ||NVL(session_rec.pdml_enabled ,'Null')||crlf;
msg := msg||'V$SESSION.FAILOVER_TYPE=' ||NVL(session_rec.failover_type ,'Null')||crlf;
msg := msg||'V$SESSION.FAILOVER_METHOD='||NVL(session_rec.failover_method,'Null')||crlf;
msg := msg||'V$SESSION.FAILED_OVER=' ||NVL(session_rec.failed_over ,'Null')||crlf;
msg := msg||'V$SESSION.RESOURCE_CONSUMER_GROUP='||NVL(session_rec.resource_consumer_group,'Null')||crlf;
msg := msg||'V$SESSION.PDML_STATUS=' ||NVL(session_rec.pdml_status ,'Null')||crlf;
msg := msg||'V$SESSION.PDDL_STATUS=' ||NVL(session_rec.pddl_status ,'Null')||crlf;
msg := msg||'V$SESSION.PQ_STATUS=' ||NVL(session_rec.pq_status ,'Null')||crlf;
IF auditing THEN
msg := msg||'DBA_AUDIT_TRAIL.OS_USERNAME=' ||NVL(audit_rec.os_username,'Null')||crlf;
msg := msg||'DBA_AUDIT_TRAIL.USERNAME=' ||NVL(audit_rec.username ,'Null')||crlf;
msg := msg||'DBA_AUDIT_TRAIL.USERHOST=' ||NVL(audit_rec.userhost ,'Null')||crlf;
msg := msg||'DBA_AUDIT_TRAIL.TERMINAL=' ||NVL(audit_rec.terminal ,'Null')||crlf;
msg := msg||'DBA_AUDIT_TRAIL.TIMESTAMP=' ||TO_CHAR(audit_rec.timestamp,'DD-Mon-YYYY HH24:MI:SS')||crlf;
msg := msg||'DBA_AUDIT_TRAIL.OWNER=' ||NVL(audit_rec.owner ,'Null')||crlf;
msg := msg||'DBA_AUDIT_TRAIL.OBJ_NAME=' ||NVL(audit_rec.obj_name ,'Null')||crlf;
msg := msg||'DBA_AUDIT_TRAIL.ACTION=' ||audit_rec.action ||crlf;
msg := msg||'DBA_AUDIT_TRAIL.ACTION_NAME=' ||NVL(audit_rec.action_name ,'Null')||crlf;
msg := msg||'DBA_AUDIT_TRAIL.NEW_OWNER=' ||NVL(audit_rec.new_owner ,'Null')||crlf;
msg := msg||'DBA_AUDIT_TRAIL.NEW_NAME=' ||NVL(audit_rec.new_name ,'Null')||crlf;
msg := msg||'DBA_AUDIT_TRAIL.OBJ_PRIVILEGE='||NVL(audit_rec.obj_privilege ,'Null')||crlf;
msg := msg||'DBA_AUDIT_TRAIL.SYS_PRIVILEGE='||NVL(audit_rec.sys_privilege ,'Null')||crlf;
msg := msg||'DBA_AUDIT_TRAIL.ADMIN_OPTION=' ||NVL(audit_rec.admin_option ,'Null')||crlf;
msg := msg||'DBA_AUDIT_TRAIL.GRANTEE=' ||NVL(audit_rec.grantee ,'Null')||crlf;
msg := msg||'DBA_AUDIT_TRAIL.AUDIT_OPTION=' ||NVL(audit_rec.audit_option ,'Null')||crlf;
msg := msg||'DBA_AUDIT_TRAIL.SES_ACTIONS=' ||NVL(audit_rec.ses_actions ,'Null')||crlf;
msg := msg||'DBA_AUDIT_TRAIL.LOGOFF_TIME=' ||NVL(TO_CHAR(audit_rec.logoff_time) ,'Null')||crlf;
msg := msg||'DBA_AUDIT_TRAIL.LOGOFF_LREAD=' ||NVL(TO_CHAR(audit_rec.logoff_lread) ,'Null')||crlf;
msg := msg||'DBA_AUDIT_TRAIL.LOGOFF_PREAD=' ||NVL(TO_CHAR(audit_rec.logoff_pread) ,'Null')||crlf;
msg := msg||'DBA_AUDIT_TRAIL.LOGOFF_LWRITE='||NVL(TO_CHAR(audit_rec.logoff_lwrite),'Null')||crlf;
msg := msg||'DBA_AUDIT_TRAIL.LOGOFF_DLOCK=' ||NVL(audit_rec.logoff_dlock ,'Null')||crlf;
msg := msg||'DBA_AUDIT_TRAIL.COMMENT_TEXT=' ||NVL(audit_rec.comment_text ,'Null')||crlf;
msg := msg||'DBA_AUDIT_TRAIL.SESSIONID=' ||audit_rec.sessionid ||crlf;
msg := msg||'DBA_AUDIT_TRAIL.ENTRYID=' ||audit_rec.entryid ||crlf;
msg := msg||'DBA_AUDIT_TRAIL.STATEMENTID=' ||audit_rec.statementid ||crlf;
msg := msg||'DBA_AUDIT_TRAIL.RETURNCODE=' ||audit_rec.returncode ||crlf;
msg := msg||'DBA_AUDIT_TRAIL.PRIV_USED=' ||NVL(audit_rec.priv_used,'Null')||crlf;
END IF;
msg := msg||'-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-'||crlf||crlf;
-- write the message to the error log file
log_file_handle := UTL_FILE.FOPEN (log_file_dir, log_file_name, 'A',maxlinesize);
UTL_FILE.PUT_LINE(log_file_handle,msg);
UTL_FILE.FCLOSE(log_file_handle);
-- send the message by Email
mail_conn := UTL_SMTP.open_connection(smtp_relay, mail_port);
UTL_SMTP.HELO(mail_conn, smtp_relay);
UTL_SMTP.MAIL(mail_conn, sender_address);
UTL_SMTP.RCPT(mail_conn, recipient_address);
UTL_SMTP.DATA(mail_conn, msg);
UTL_SMTP.QUIT(mail_conn);
END IF; -- client_program = MyProgram.exe
END IF;
END;
/ -
Error messages from remote database
Hi.
While working across database links, usually the error messages occurring on the remote database are displayed without particulars like datafile name, tablespace name, etc. e.g. ORA-03232: unable to allocate an extent of blocks from tablespace , which should ideally say ORA-03232: unable to allocate an extent of 100 blocks from tablespace TEMP. This, probably is because only an error number is passed back from the remote database or because the other parameters passed back are not being picked up properly by the local database (client). Is there any way to get around this? It should not be something like 'add a parameter in the remote procedure for getting back the error text'!
Thanks,
RahulThe alternative of course is to make your process which does the insert into the table conditional upon the username not already being present in the table. It give you the overhead of an additional data fetch but this should be negliable unless you have a very large table with poor index usage.
-
How to Centalize the data from remote database
we have 300-400 databases across remote server.
we want to collect the centralized inforamtion from remote server into centralized oracle database.
1.exporting the centralized data at remote server and
through FTP transfering it to central server and
importing the dump in central database
2.Creating database links and collecting data through
Snapshot
Which is best or Give any suggestion pls
if possible give detail informationHi,
Use Proxies For Your Sender SAP System side and Use the Appropriate Adapter at Receuver side according to the Requirement
Now scenario willl be Proxy-Xi---
Logic:
1) Write the Logic inside the Proxy report to pick the records from the tables
2) And send it to Xi, Xi will routew the data to the third party System based on the adapter you selected
ABAP Proxies Pre-requisites
/people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
ABAP Client Proxies
/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
Regards
Seshagiri -
Copying CLOB data from remote database to local database
How can i copy a CLOB data from a remote datbase table to a local database table ?
i have a database link created from my local database to remote database, but looks like i cannot select a clob locator or clob data residing on a remote database through this link ?
is there any way to do this ? anyone has a readily available code for doing this ? i need this very urgently, your help is greatly appreciated!
thanks,
SC.Is there a local to your pc database ???? Which is the db version of your pc(if there is)....and your server's database?????
Simon -
Can OLAP cube load from remote database?
Sorry, been forever since I worked with Express / Oracle OLAP. If I want to build a cube in one database, is AWM able to load data from another database? Or do I have to have to build the cube on the same database where the source is?
Thanks!
ScottYou can load from any local table or view. So the simplest approach is to define a view in your AWM database that selects from the table in the second database. You then map your cube to the local view.
-
To access a 11gr1 db from remote server which parameters needs to be set
Hi,
I would like to access my db from a remote server, for this which parameters i need to set?
Thanks,By default you don't need to set any instance parameter for this because Oracle Net listener will run on port 1521 and database will register dynamically to local listener on port 1521.
If listener does not listen on port 1521 then you need to set instance parameter LOCAL_LISTENER: http://docs.oracle.com/cd/E11882_01/network.112/e10836/listenercfg.htm#CHDCCHIC. -
Weblogic Server Crash on accessing service bus console from remote
Please help me out here. Thanks.
Error Message:
<2009-01-28 16:05:50 CET> <Warning> <netuix> <BEA-423430> <The portal <directive.page> element has been deprecated. You can set the page encoding on the <netuix:desktop> element.>
<2009-01-28 16:05:51 CET> <Warning> <netuix> <BEA-423420> <Redirect is executed in begin or refresh action. Redirect url is jsp/login/index.jsp.>
===== BEGIN DUMP =============================================================
JRockit dump produced after 0 days, 00:04:03 on Wed Jan 28 16:05:56 2009
Additional information is available in:
/home/efidev/dev/bea92/domains/alsb/jrockit.8808.dump
No snapshot file (core dump) will be created because core dumps have been
disabled. To enable core dumping, try "ulimit -c unlimited"
before starting JRockit again.
If you see this dump, please open a support case with BEA and
supply as much information as you can on your system setup and
the program you were running. You can also search for solutions
to your problem at http://forums.bea.com in
the forum jrockit.developer.interest.general.
Error Message: Illegal memory access. [54]
Signal info : si_signo=11, si_code=1 si_addr=0x2598
Version : BEA JRockit(R) R26.4.0-63_CR302700-72606-1.5.0_06-20061127-1104-linux-ia32
GC : System optimized over throughput (initial strategy singleparpar)
: GC strategy for GC 0 was singleparpar
: GC strategy for GC 1 was genparpar
: GC strategy for GC 2 was genparpar
: GC strategy for GC 3 was genparpar
: mmHeap->data = 0x8100000, mmHeap->top = 0x28100000
: The nurserylist starts at 0x8ba1998 and ends at 0xa29d4d8
: mmStartCompaction = 0x22100000, mmEndCompaction = 0x24100000
CPU : Intel Core (HT) SSE SSE2 Core EM64T
Number CPUs : 2
Tot Phys Mem : 3442233344 (3282 MB)
OS version : lenny/sid
Linux version 2.6.24-19-generic (buildd@palmer) (gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)) #1 SMP Wed Jun 18 14:43:41 UTC 2008 (i686)
Thread System: NPTL
State : JVM is running
Command Line : -Xms512m -Xmx512m -Xverify:none -da -Dplatform.home=/usr/local/app/bea92/weblogic92 -Dwls.home=/usr/local/app/bea92/weblogic92/server -Dwli.home=/usr/local/app/bea92/weblogic92/integration -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=/usr/local/app/bea92/patch_weblogic921/profiles/default/sysext_manifest_classpath -Dweblogic.Name=AdminServer_ALSB -Djava.security.policy=/usr/local/app/bea92/weblogic92/server/lib/weblogic.policy weblogic.Server
java.home : /usr/local/app/bea92/jrockit90_150_06/jre
j.class.path : :/home/efidev/dev/bea92/domains/alsb/lib/commons-collections-3.2.jar:/home/efidev/dev/bea92/domains/alsb/lib/commons-configuration-1.4.jar:/home/efidev/dev/bea92/domains/alsb/lib/commons-lang-2.3.jar:/home/efidev/dev/bea92/domains/alsb/lib/commons-logging-1.1.jar:/home/efidev/dev/bea92/domains/alsb/lib/commons-pool-1.3.jar:/home/efidev/dev/bea92/domains/alsb/lib/ip-code-translator-1.0.jar:/home/efidev/dev/bea92/domains/alsb/lib/IPHeaderAPI.jar:/home/efidev/dev/bea92/domains/alsb/lib/ip-logging-1.0.jar:/home/efidev/dev/bea92/domains/alsb/lib/kodo-4.1.2.jar:/home/efidev/dev/bea92/domains/alsb/lib/openjpa-0.9.6.jar:/home/efidev/dev/bea92/domains/alsb/lib/persistence-api-1.0.jar:/home/efidev/dev/bea92/domains/alsb/lib/serp-1.11.0.jar:/home/efidev/dev/bea92/domains/alsb/lib/velocity-1.4.jar:/usr/local/app/bea92/patch_weblogic921/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/usr/local/app/bea92/jrockit90_150_06/lib/tools.jar:/usr/local/app/bea92/weblogic92/server/lib/weblogic_sp.jar:/usr/local/app/bea92/weblogic92/server/lib/weblogic.jar:/usr/local/app/bea92/weblogic92/server/lib/webservices.jar::/home/efidev/dev/bea92/domains/alsb/template_alsb/lib/config:/usr/local/app/bea92/weblogic92/servicebus/L10N:/usr/local/app/bea92/weblogic92/servicebus/lib/sb-public.jar:/usr/local/app/bea92/weblogic92/servicebus/lib/sb-common.jar:/usr/local/app/bea92/weblogic92/servicebus/lib/sb-internal.jar:/usr/local/app/bea92/weblogic92/servicebus/lib/sb-core.jar:/usr/local/app/bea92/weblogic92/integration/common/lib/mfl-common.jar:/usr/local/app/bea92/weblogic92/platform/lib/p13n/p13n_system.jar:/usr/local/app/bea92/weblogic92/common/p13n/lib/p13n_common.jar:/usr/local/app/bea92/weblogic92/server/lib/wlxbean.jar:/usr/local/app/bea92/weblogic92/server/lib/apachexmlbeansutil.jar:/usr/local/app/bea92/weblogic92/server/lib/xquery.jar:/usr/local/app/bea92/weblogic92/server/lib/binxml.jar:/usr/local/app/bea92/weblogic92/common/lib/log4j.jar:/usr/local/app/bea92/weblogic92/servicebus/lib/uddi_library.jar:/usr/local/app/bea92/weblogic92/servicebus/lib/uddi_client_v3.jar:/usr/local/app/bea92/weblogic92/servicebus/lib/version.jar::/usr/local/app/bea92/weblogic92/common/eval/pointbase/lib/pbembedded51.jar:/usr/local/app/bea92/weblogic92/common/eval/pointbase/lib/pbupgrade51.jar:/usr/local/app/bea92/weblogic92/common/eval/pointbase/lib/pbclient51.jar:/usr/local/app/bea92/weblogic92/server/lib/xqrl.jar::
j.lib.path : /usr/local/app/bea92/jrockit90_150_06/jre/lib/i386/jrockit:/usr/local/app/bea92/jrockit90_150_06/jre/lib/i386:/usr/local/app/bea92/jrockit90_150_06/jre/../lib/i386:/usr/local/app/bea92/patch_weblogic921/profiles/default/native:/usr/local/app/bea92/weblogic92/server/native/linux/i686:/usr/local/app/bea92/weblogic92/server/native/linux/i686/oci920_8
JAVA_HOME : /usr/local/app/bea92/jrockit90_150_06
JAVAOPTIONS: <not set>
LD_LIBRARY_PATH: /usr/local/app/bea92/jrockit90_150_06/jre/lib/i386/jrockit:/usr/local/app/bea92/jrockit90_150_06/jre/lib/i386:/usr/local/app/bea92/jrockit90_150_06/jre/../lib/i386:/usr/local/app/bea92/patch_weblogic921/profiles/default/native:/usr/local/app/bea92/weblogic92/server/native/linux/i686:/usr/local/app/bea92/weblogic92/server/native/linux/i686/oci920_8
LD_ASSUME_KERNEL: <not set>
C Heap : Good; no memory allocations have failed
StackOverFlow: 0 StackOverFlowErrors have occured
OutOfMemory : 0 OutOfMemoryErrors have occuredUpgrading to latest version is a good choice. You can also consider increasing the heap size from -Xms512m -Xmx512m to -Xms1024m -Xmx1024m and confirm if this crash was due to insufficient heap.
Maybe you are looking for
-
Connect to Wireless Network - No Internet
I have a Linksys WRT54GS using the lastest firmware. My desktop is hardwired to the router and can access the web. Linksys EasyLink Advisor shows shows my Cable Modem, the Wireless Router, the desktop and the laptop. I can connect to the wireless net
-
Target URL in the Receiver SOAP channel in PI 7.11
Hi I have designed integrated Configuration in PI 7.11 and i have SOAP sender and SOAP receiver. SOAP sender is fine but for SOAP receiver i have an issue with the target URL that i selected. Initially the receiver was ABAP proxy with HTTP connection
-
How to tag a Print PDF form ?
Hi, I need some pointers on how to tag a print PDF form. For one of the requirements, we developed a Print PDF form. The form contains Sub-forms which are made to look like a table. The relevant parameter(i.e., pdf_tagged ) is already set before star
-
Setting Defualt Authentication type to Enterprise in Full Client - strange
Hi Folks, I am having issue setting up default authentication type in full client. My users here use Desktop Intelligence for their reporting. We have configured Windows AD authentication for them and they are logging to one of the server via Citrix
-
Charger for creative zen jukebox 40
Hi guys...my charger cable for creative zen got caught up in a door and got nipped and is now not working, i know it is this as i've used a friends charger and it charges ok,Where can i get a charger in the UK any advice would be great