If you need to download latest workflow client, for EBS, search in metalink for Doc ID # 261028.1.There are different versions, to be downloaded depending on what version of Oracle RDBMS you would be working on. For example if the RDBMS version is 10g or above, then download patch # 4066964 click here.to go there.
If you intend to work on non-EBS Oracle installation, then you can download from OTN - click here to go there.
Notes on daily happenings around me, while I work hard - or hardly, depending on the viewpoint - in the Oracle World
Friday, May 28, 2010
Sunday, May 23, 2010
SQLDeveloper - Connection parameters
Here is how I am able to connect to the database using SQLDeveloper, without using TNSNAMES option.
Note: All the notes have been written for *nix (Linux/UNIX) OS versions
Leave the connection Type as "Basic"
Determine the Hostname, port and global database name as mentioned below:
- open a terminal
- type lsnrctl (the prompt will change to LSNRCTL>)
- type show pid
- This will display host (which you will enter in hostname) and the port values.
- Next determine service name by running the following SQL:
- SELECT VALUE AS "Service Name" FROM v$parameter WHERE name = 'service_names'
- Enter value into Service Name
- Click on Test and ensure that you are able to connect.
- Finally click on save to save it in the connection list.
Tuesday, May 18, 2010
How to reconfigure Oracle Enterprise Manager on Linux
I was unable to connect to Enterprise Manager Console for the last one week. I had tried out everything that I could search for from the web, but nothing seemed to work. I was able to start the dbconsole, connect, but it would give me a message stating "Enterprise Manager could not to connect to the database". Finally, in sheer desperation,I thought of dropping and recreating the EM. I chanced upon a well written article, by MacLochlainns, (See References below) on recreating the EM in windows. Although, I am running on Linux, I was sure, the commands would be same or similar. It turned to be the same!. In fact, I did not face any of the problems mentioned in his blog (Point # 7). Users, SYSMAN and MGMT_VIEW, the PUBLIC Synonyms setemviewusercontext & mgmt_target_blackouts and the role mgmt_user, were all automatically dropped,.
Other than that, rest of it, I just followed his instructions and I have the EM running. Thanks a lot MacLochlainns
The commands I used, are listed below:
Start the Oracle Listener and Database
emca -deconfig dbcontrol db -repos dropOnce the above command finishes, run the following one:
The emca command required me to enter Oracle SID, Listener port; passwords were keyed-in without using double or single quotes (again there was a difference between my reconfiguration and MacLochlainns web article). In other words, key-in just the passwords, encasing them within double quotes is not needed.
Finally, I accepted default values for Email notifications, Outgoing Mail Server for notifications, and I was done.
emca -config dbcontrol db -repos createImportant: Backup emkey.ora, since the database is kept in encrypted mode. If the key gets corrupted then, all the data will be lost.
once it is completed, test run it by logging onto the Enterprise Manager console.
References :-
How to reconfigure Oracle Enterprise Manager on Windows | MacLochlainns WeblogOracle's page on Enterprise Manager Configuration Assistant (EMCA)
Saturday, May 15, 2010
Errorlogging Clause in 10.1 and above
I was working on the Errorlogging clause in the Insert statement which can be used to capture errors that may occur while inserting, and I noticed that Errorlogging clause does not automatically create an error logging table, if it is not specified. I was trying this using SQLDeveloper, so was not sure whether it was a bug in the SD or not. To test it, I ran it using SQL*Plus.
Here is the Insert statement with Error logging clause
| Log Errors Syntax (Screen -01) |
| Not mentioning table is Not an option (Screen -02) |
| Created Error Log Table (Screen -03) |
As you can see from the screen below, the procedure got executed successfully (Screen -04)
| Procedure to generate Error (Screen -04) |
The data got inserted into the Err$_Employees Table (Screen -05). So, I think I might have hit into a Bug, however, I am still researching about it.
| Data Inserted Into Error Log Table (Screen -05) |
References:
Click here to view Insert StatementClick here to view DBMS_ERRLOG Statement
Click here to view well written example @orafaq.com
Bug: Could not find any bug other that this old one in Metalink # Bug 5255455
Subscribe to:
Posts (Atom)