recording of errors on a disconnected session database connection?
Hi allI write in an ETL process. I have a little problem with the clause of an insert error log.
Here's the situation:
A database is:
Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
Database B is:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
I have an A data source table and target a table in database B
I have a package compiled into database B, which moves the data from A to B.
A special SQL (running in the database package B) connects errors in an error table on a database link.
When this SQL statement runs the client session connection to database B is disconnected. whatever the client tool (tried by SQL and SQL Developer * more)
This happens when I run a SQL statement entirely to within the database B but always log errors to A.
See the following topics:
SQL> --verify that the database link is active and the error table is visible:
SQL> select count(*)
2 from dwstage.customer_address_clean_error@rptent_dlink;
COUNT(*)
----------
43
1 row selected.
SQL> --attempt to insert a record that already exists, producing a primary key violation:
SQL> insert into customer_address
2 (select *
3 from customer_address where address_id = 18786 );
insert into customer_address
*
ERROR at line 1:
ORA-00001: unique constraint (WORLDKING.PK_CUSTOMER_ADDRESS) violated
SQL> --now the same thing but with logging to the remote table:
SQL> insert into customer_address
2 (select *
3 from customer_address where address_id = 18786 )
4 log errors into dwstage.CUSTOMER_ADDRESS_CLEAN_ERROR@rptent_dlink reject limit 20000;
ERROR:
ORA-03114: not connected to ORACLE
insert into customer_address
*
ERROR at line 1:
ORA-03113: end-of-file on communication channel Process ID: 0 Session ID: 269 Serial number: 40141
Good things...The error table is created with the normal script for Oracle based on the customer_address table
The tables are identical except for the table of errors being all varchar2 (4000) and that contains the following columns:
ORA_ERR_NUMBER$
ORA_ERR_MESG$
ORA_ERR_ROWID$
ORA_ERR_OPTYP$
ORA_ERR_TAG$
There are no special data types in the table:
SQL> desc customer_address
Name Null? Type
------------------------------------------------------------------------ -------- --------------
-------
ADDRESS_ID NOT NULL NUMBER(12)
CUSTOMER_ID NOT NULL NUMBER(12)
TYPE_CODE NUMBER(12)
FLAT_UNIT_TYPE NUMBER(12)
FLAT_UNIT_NO VARCHAR2(10)
FLOOR_LEVEL_TYPE NUMBER(12)
FLOOR_LEVEL_NO VARCHAR2(10)
BUILDING_PROPERTY_NAME1 VARCHAR2(30)
BUILDING_PROPERTY_NAME2 VARCHAR2(30)
LOCATOR_DESC VARCHAR2(30)
LOT_SECTION_NO VARCHAR2(10)
STREET_NO VARCHAR2(10)
STREET_NAME VARCHAR2(30)
STREET_TYPE NUMBER(12)
POSTAL_DELIVERY_TYPE NUMBER(12)
POSTAL_DELIVERY_NO VARCHAR2(10)
LOCALITY_PLACE_SUBURB VARCHAR2(40)
LOCALITY_ID NUMBER(12)
STATE_TERRITORY VARCHAR2(30)
COUNTRY_STATES_ID NUMBER(12)
POSTCODE VARCHAR2(10)
COUNTRY_ID NUMBER(12)
DPID NUMBER(8)
X_COORD VARCHAR2(8)
Y_COORD VARCHAR2(8)
CREATED_BY VARCHAR2(10)
CREATED DATE
UPDATED_BY VARCHAR2(10)
UPDATED DATE
LOCK_VN NUMBER(10)
Any suggestions on how to solve this?
that runs the package isn't (and shouldn't really) have permissions to see anything, except that the database module B
The session needs to see the package only. The very idea of the packaging must ensure that the session is not directly access the target table. The package makes the INSERT in the target_table and can also insert into the table of logging of errors.
You are testing with the SQL commands outside of the package must be able to access the target table and the table of logging of errors. But once you put in a package, the package (probably in the schema to which belongs the target table and the table of logging of errors) will access tables.
Hemant K Collette
Tags: Database
Similar Questions
-
Hi people,
Need help, the example requires that the value of packet data 'g_var' must be updated in the session/s connected everywhere without the session/s to be disconnected and reconnected.
Here's the scenario:I created a table my_table having the pair name / value.
A variable with global package "g_var' in his body and a get accessor method to access g_var variable from the outside world.
This variable g_var is initialized within the block of the entry into force of the package and retrieves the current value of the variable from my_table.
When I update the value in the table a trigger on my_table would reset the State of the package and therefore g_var to the most recent value in the same session
All is well so far since the change in value is reflected in the current session, but if I've already connected session/s
and I'm trying to retrieve the value of "g_var", it is not updated in already connected sessions and remains the same before the update.
Can U help please how can I update this value in a session/s connected without having to disconnect and reconnect.
because if I disconnect and reconect the existing sessions, it seems to show the updated value.Thanks in advance.
Kind regards
Gaurav RajputHere are the Scripts:
drop table my_table;
create table my_table
(
my_variable_name varchar2 (100),
number of my_variable_value
);create or replace package my_package as
Function get_g_var return number;
end my_package;
/create or replace package body my_package as
number of g_var;
Function get_g_var return number is
Start
Return g_var;
exception
while others then
lift;
end get_g_var;
procedure init (my_passed_name varchar2) is
Start
Select my_variable_value in the g_var from my_table where my_variable_name = my_passed_name;
exception
while others then
raise_application_error (-20004, "I got an error during Init");
end init;Start
init ('$'); -This is a call to time when the package is loaded into the memory of session
exception
while others then
raise_application_error (-20003, 'Error in my_package');
end my_pACkage;/
create or replace TRIGGER my_trigger
BEFORE DELETE OR UPDATE
ON my_table
FOR EACH LINE
declare
number of my_ret;
Start
DBMS_SESSION.modify_package_state (DBMS_SESSION. RESET);
exception
while others then
lift;
end my_trigger;/
-It is initially set to null
insert into my_table values ('DOLLAR', 62);
commit;-test value for first time to package loading (62 views)
Select * from my_table;Set serveroutput on
declare
my_variable varchar2 (100);
BEGIN
my_variable: = my_package.get_g_var;
dbms_output.put_line ($my_var);
END;-run the same block of end to start in another session it shows 62. All is well so far
-check if the value after the update in the same session (shows 38), also check in another before the connected session as well (shows 62 and not 38)
Update my_table set my_variable_value = 38 where my_variable_name = "DOLLAR";
commit;Select * from my_table;
Set serveroutput on
-It displays 38 in this session, but there in an already connected session 62 and only after you log out shows 38
declare
my_variable varchar2 (100);
BEGIN
-my_variable: = my_package.g_var;
my_variable: = my_package.get_g_var;
dbms_output.put_line ($my_var);
END;Package variables are stored in the private memory (PGA). The value is not visible in the session. A package variable is therefore not approach appropriate to your problem. You can look at in the context of the Application, as Solomon has said.
http://docs.Oracle.com/CD/B28359_01/network.111/B28531/app_context.htm#CIHFJHCG
-
Database connection - error of creation of the admin user Setup. No route to host
During step 2: configuration of the database connection we select the "internal database".After a short delay, we get a message saying "error of creation of the admin user. No route to the host.I have been more before DNS records and back and everything seems in good condition.Can someone point me in the right direction to solve this error?This is an SSL certificate error. Have you changed the default self-signed SSL certificates?
-
Database connectivity error: ADO...?
I'm trying to export data in an Oracle database local using the Toolbox Database Connectivity.
(I created my TEST table in the local Oracle database, I can access, write, read, etc. using SQL.) I also have the .dsn file that works with SQL)
I get the following error:
I found the problem. Not associated with LabVIEW (Duh...).
Basically I have two copies of .tns names in two different folders. One of the files that I used to make a connection
to the database did not have the correct login info and the other did. One who did was one I used.
-
Get the error message 'error 101 net disconnect' when to access Web sites
Original title: I can't access the internet even LAN works wait gmail.com in google chrome and other browsers
I use win xp and Lan is connected. Avast pro is installed. Google chrome is the default browser uses.
The problem is that I can't access the Web sites wait gmail.com it no problems but when I go to other Web sites, it said error 101 net disconnect.No virus issue that I scanned several times.I googled and tried winwock, exe fix, but no use and not cleaned up all temporary files also no use.It works fine in my laptop another not in my office. It was working fine a couple of days.May be the software that I'm not aware of the issue is the culpritPlease give me solutions.Thank youHello
You can contact the support of Google Chrome for better assistance.
http://support.Google.com/chrome/?hl=en
Hope this information helps.
-
frequent blue screens often to internet sites. Blue screen too fast for me to record specific error message. How can I put an end to the blue screen to get the error message?
en blue screen too fast for me to record specific error message. How can I put an end to the blue screen to get the error message?
If your computer is restarted when the BSOD appears, then you must change the by default for what to do in case of system error. It is easy to do, but takes a lot of mouse clicks to get there:
Start | Control Panel | System | Advanced system settings (need for credentials for the administrator to spend here |) Advanced | Startup and recovery / settings.
On this screen, uncheck the box under system failure that says automatically restart. The next time the BSOD appears, your computer will not do anything else until you press the reset button, so you'll have all the time you need to read and copy the error codes. Paste here, verbatim, and someone should be able to point in the right direction.
``````~~~~`````
In the control panel choose reports on problems and Solutions (problem of type in the START search box), go to historical problem, right-click your error and choose check for the Solution. You can also examine the details.
In administrative tools, choose the reliability and performance monitor and click on MonitoringTools then the reliability monitor (type reliability in research on Start). This list is a chart of the software installs, uninstalls, updated Windows and crashes by date. See if your plant has started to happen after you installed or uninstalled something.
It may be useful to eliminate equipment defects
Type of memory in the search box of start and choose Memory diagnosis
In a command prompt (type command in the start search box then right click and choose Run as administrator) type
CHKDSK c: /r
If you have more than one drive replace C: with the other drive letters.
Search for corrupted files by typing at the command prompt
sfc/scannow
You can clean boot troubleshooting http://support.microsoft.com/kb/331796
-
Original title: Registery Error Message
During startup, I get an error message that the registry database cannot find a file and modify registry to delete the reference to the file in the registry. How can I do this?
Hello
- What were the changes made before the problem occurred?
I recommend you perform the clean boot.
Configuration of your system in a clean boot state helps determine if third-party applications or startup items are causing the problem. If so, you need to maybe contact the manufacturer of the program for updates or uninstall and reinstall the program.
See the following article in the Microsoft KB for more information on how to solve a problem by performing a clean boot in Windows Vista or Windows 7:
How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
http://support.Microsoft.com/kb/929135
Note: After troubleshooting, be sure to set the computer to start as usual as mentioned in step 7 in the above article. -
I am using windows 7 64 bit home premium I installed ms office 2007 and did all the settings.
but I am unable to connect to the Access database in java program.it shows error database connection driver not installed.
Please give me the solution...Hello
I suggest you to ask your question about Java programming forums on the subject.
https://forums.Oracle.com/Forums/Forum.jspa?forumid=922
You can also ask your question on the forums to access.
http://answers.Microsoft.com/en-us/Office/forum/access?page=1&tab=all&TM=1349633636662
-
Use of EI UC derives 100% on a disconnected session
Hi all
(I'm getting you connected an SR for this, but MyVMware is not complete this if just post here to cover the basics)
Infrastructure: View 6.0 on vSphere 5.5.0. Virtual desktop Windows 8.1 with view Agent 6.
Quick summary:
If a user disconnects from PCoIP session leave IE open with a HTML5 page based in the foreground, CPU reaches and maintains 100% usage. When the user reconnects, use fall back to normal levels.
Support Microsoft made marks on the process IE DCOMP and conclusions are below.
It is very well leaving reduced IE when a user disconnects. Firefox/Chrome also do not show this, only IE.
Response from Microsoft support:
"The trace shows IE is awaiting confirmation of package ID."
+ 0 x 050 m_currentBatchId: 0x24bb57dc
+ 0 x 054-m_lastConfirmedBatchId: 0x20e335b0
+ 0 x 058 m_lastSurfaceProcessedBatchId: 0x20e335b0
The current package ID continues to increase, but the last confirmed batch is never updated until the user session of Gary took over. The confirmation ID is increased from 0x20e335b0 to 0x24bb57da all of a sudden. After that, the interface thread user IE jumped the loop and take it back to normal.
In conclusion, we have some important conclusions:
• The IPS of the CPU is observed after that the user is disconnected from the session, the monitoring tool will give the warning message.
• Opening session with another user, the CPU spike persists.
• When the disconnected session is resumed, THE CPU down to normal.
• However, when you disconnect the session with IE Windows, the CPU soon increased to 100%.
• We have also done a test to minimize IE window before disconnecting the session, then the CPU is normal and the problem does not happen.
The halde we collected today shows exactly the same problem as the previous shocks. Customer DCOMP is waiting for the confirmation ID to update. It seems that the session VDI is disconnected, DWM stops processing of the image content until the user session is active again. »
Is there something that can be done on the side of the Horizon Agent (via the strategy, perhaps) that might mitigate it?
Thank you
NickB
Sorry, I don't think that there is something we can do right here - the product explicitly disconnects the session, and there is no sure way of that off. A workaround may be possible - if you use 6.0, you can use CommandsToRunOnDisconnect and build a script to minimize all the Windows IE. See the Center of Documentation of VMware View 5.0
-
Setup error CS6, inconsistency in the database of the installer, code output 15
Hello
I am trying to install Photoshop CS6 on my new Mac.
After asking 2%, I get the error message "Setup error CS6, inconsistency in the database of the installer."
The file of summary shows error code fatal exit 15 and 0 errors/errors/warnings.
I've seen the other threads in this forum with the same error and I tried the only suggestions here, but so far no luck.
My Photoshop CS6 is a version downloaded from the Adobe Web page. Everything works fine until the installation begins.
These are the actions that I have tried:
1. restart and reinstall
2 cleaning adobe tool (no result because there was nothing to clean up)
3. I have disabled the software from my old computer
4 tried to install it in safe mode
5. I was contact Adobe support, did not get much support at all. After awhile, I was told to open a discussion in this forum.
Please help... spent two days on this already.
Jeff,
Finally... The problem is resolved.
I contacted chat support and the person I spoke to connected to my computer and only could find a corrupt file that caused the whole issue.
Once the file has been deleted, installation could be completed without any problems.
Thank you for your support.
-
"Error 1002097 Unable to Load database" when starting an Essbase application.
Hello the Essbase Experts,
I am getting error below when starting an Essbase Application:
"Error 1002097 Unable to Load database".
An excerpt from the journal of Essbase applications:
[2012-04 - 04T 14: 14:03.816 - 19:14] [RPP] [MSS-6] [ERROR] [32]] [ecid:1333566842161, 0] [tid:2058170128] impossible to lock the file
[SID/essbase/user_projects/epmsystem/EssbaseServer/essbaseserver1/app/RPA/RPA/RPA.esm]. Essbase will try again after a short
delay.
[2012-04 - 04T 14: 14:04.821 - 19:14] [RPP] [MSS-5] [ERROR] [32]] [ecid:1333566842161, 0] [tid:2058170128] impossible to lock the file
[SID/essbase/user_projects/epmsystem/EssbaseServer/essbaseserver1/app/RPA/RPA/RPA.esm]. Please make sure that other processes are not
access Essbase files while Essbase server is running.
[2012-04 - 04T 14: 14:04.821 - 19:14] [RPP] [MBR-89] [WARNING] [1] [] [ecid:1333566842161, 0] [tid:2058170128] cannot open
[SID/essbase/user_projects/epmsystem/EssbaseServer/essbaseserver1/app/RPA/RPA/RPA.esm] for the database
[RPP] [2012-04 - 04T 14: 14:04.821 - 19:14] [RPP] [SVR-97] [ERROR] [32]]
[ecid:1333566842161, 0] [tid:2058170128] Unable to load the database [RPP]
[2012-04 - 04T 14: 14:04.821 - 19:14] [RPP] [SVR-97] [ERROR] [32]]
[ecid:1333566842161, 0] [tid:2058170128] Unable to load the database]
[2012-04 - 04T 14: 14:04.835 - 19:14] [RPP] [SVR-97] [ERROR] [32]]
[ecid:1333566842161, 0] [tid:2058170128] Unable to load the database]
Please sugest pointers to start the application.
Thank you
KKusually when I see this error it means that a backup process put a lock on the file. The only way I iknow to clear, it is to restart the server (not the service, but the entire server)
-
upgrade from 3.2 to 4.1 - error handling for the unavailable database links
Hello
I have a 3.2-> upgrade problem 4.1 associated with error handling for the damaged database links.
I have a conditional button Exists on a page that contains a SQL query to related tables. However, for 10 minutes every day where the target of the link database becomes a cold backup, the query fails. In the apex 3.2 old, I just had an error within the region where the button is located but otherwise, the page was still visible:
"Is not valid/not exists condition: ORA-02068: following a serious error of MYDBLINK ORA-01034: ORACLE not available ORA-27101: there is no shared memory realm."
However, in the apex 4.1.0.00.32 I get the following unhandled error and click 'OK' brings me to the edit page when logged in as a developer.
that is, the page cannot run at all so that the links to the database fail to this one area.
Treatment of error condition.
ORA-12518: TNS:listener could not hand off client connection
Technical information (only visible for developers):
is_internal_error: true
apex_error_code: APEX. CONDITION. UNHANDLED_ERROR
ora_sqlcode:-12518
ora_sqlerrm: ORA-12518: TNS:listener could not hand off client connection
Component.type: APEX_APPLICATION_PAGE_REGIONS
Component.ID: 4
Component.Name: alerts today
error_backtrace:
ORA-06512: at "SYS." WWV_DBMS_SQL', line 1041
ORA-06512: at "APEX_040100.WWV_FLOW_DYNAMIC_EXEC", line 687
ORA-06512: at "APEX_040100.WWV_FLOW_CONDITIONS", line 272
Users generally see this:
Treatment of error condition.
ORA-01034: ORACLE not available ORA-02063: preceding the line of MYDBLINK
by clicking on 'OK' takes the user to another page, don't know how the Summit decides that, but not a concern at the moment.
I did a search and read the http://www.inside-oracle-apex.com/apex-4-1-error-handling-improvements-part-1/ page, but the new apex error handling is not clear to me, and I don't know if the apex_error_handling_example provided on this page would be applicable to this situation.Hello
It was my fault, I forgot that the code will be compiled on the fly which already fails if the table/view of deletion is not accessible. Nice that you found yourself workaround.
Concerning
Patrick
-----------
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf -
OATS: Error Message 'Unable to get a connection from the browser' on the record
Hello
I am involved in the control of the operation for application Siebel 8.1, with the OATS 9.3 tool.
Trying to save, an Error Message * "unable to get a connection from the browser. You want to continue to wait for the browser load? "* appears, even if InstallBrowserHelpers has been installed.
I tried to uninstall the 'BrowserHelpers' and re - install but the question remains.
your response on this will be appreciated.
Thank you!Try to uninstall everything that touches on OATS to your PC then re - install. Uninstall steps are in this forum. You can search for it. Work around the error can take a long time.
Concerning
CP -
ICP-02002, create a new database connection
I'm multiplex a new database connection in my JDEv application.
All right, but when I try to record (with Save password verified) I get the following error and the configuration.xml file is not updated.
June 15, 2011 15:47:46 oracle.security.jps.internal.credstore.ssp.CsfWalletManager openWallet
ATTENTION: Portfolio based store of credentials failed. Reason for java.io.IOException: ICP-02002: could not open the wallet. Check the password.
June 15, 2011 15:47:46 oracle.jdevimpl.db.DefaultEditor launchEditor
WARNING: Could not save connection: cannot save the database connections: oracle.security.jps.service.credstore.CredStoreException: JPS-01050: portfolio based store of credentials failed. Reason for java.io.IOException: ICP-02002: could not open the wallet. Check the password.
What is the problem?
TKS
Tulliotullio0106 wrote:
... fsrc/META-INF directory is in the same directory of the workspace and not in any project.That's right, in the workspace to the src/META-INF (not fsrc/META-INF).
The file is binary and should not be opened/saved with any editor. Try to remove and reconfigure the connection in JDeveloper. Save the password so that it is recreated.
Hope it works.
-
Hello
I use the database connectivity toolkit to create a Microsoft access database. I'm new to the Toolbox. I've read the tutorials online and following the instructions. I created an empty Microsoft Access file with an .mdb extension. I also created a link to data .udl with tools > create data... in LabView and linked to the mdb file. My code VI is attached. I get the following error when I run the program (also attached). I don't know what causes this error. I appreciate your help.
Thank you
You can not create a table with the name "table". It is a key word.
Maybe you are looking for
-
How can I get Firefox starts automatically when you start of OS 10.6.8 on iMac?
Have been hunting everywhere for certain types of file on the system so that Firefox should start automatically when the computer starts. Find anything obvious. Any suggestions?
-
Portege R600-11 q - battery problem
Toshiba says that this laptop will run to 8 hours and 30 minutes on a single charge.My new (charged time system 6 or 7 battery is ' run in ') barely lasts 4 hours and 30 minutes with Toshiba Energy Saver option selected. Is this normal? When I select
-
How can I prevent my vi 'Write the JPEG' printing on my default printer?
I use this VI to create a JPEG of my front, but both always creates the JPEG image as it is supposed to AND it prints on my printer by default. Does anyone else have this problem? Is there a solution? Is there another way to create JPEG files? I
-
Why we can no longer open a program over the taskbar
original title: the feature of the taskbar Why a very useful feature has been removed? Auto-hide is very probably the most annoying feature ever; I prefer to be able to allow windows to open the taskbar and if I need press the Windows keyboard dire
-
Connecting the highway to CM unified using TLS
Hi all I have a question for encrypted internal/external calls. I have some problems with the configuration for the Protocol TLS encrypted calling between 11.5 CUCM and highway-CEspecially in the case of certificate:-Iam using the xCA Oppensource too