Finding a function name in PL/SQL Developer
Hi,
Newbie here...Is there a feature in PL/SQL Developer that will let me search through all my api's for a function by a string contained in the function name? For instance I would like to see all the functions in any of the api's that contain the string 'get' rather than try to guess in what package the function I'm looking for resides,
Thanks in advance for any help
Do you mean PL/SQL Developer? If so, you're on the wrong forum.
SQL Developer 1.5 and above uses PLScope to search for PL/SQL objects, when connected to an Oracle Database 11g.
Sue
Similar Messages
-
User Name limitations in SQL Developer
I am using SQL Developer from past 1 year. I am facing some issues with some of my connections which are with Numaric User Names ( Ex. User Name : 12312). In older versions it was giving error ' Invalid User name / Passoword' And in Version3 its giving *' Un Supported Verifier Type , Vendor Code: 17451'*.
Am able to connect with same user from TOAD and Command Prompt. And with alpha numaric name i able to connect from SQL Developer also.
Is it a limitation in SQL Developer to have user as alphanumaric only ( Starting with Charectar) ? Can somebody help me if i need to change any setting to use *'Numaric User name'*
Thanks,
Ram
[email protected]Thanks Jim for the reply. i tried using double quotes but still the same issue. And i am able to connect from commadprompt, SQL + and from Toad. Only issue with SQL developer.
-
Hi,
because of some security reasons, there is a need to disable export connections functionality in SQL developer.
Is it possible to do this somehow?
Many thanks,
DejanNot that I know of.
Even if we did, they are still stored in a file that most of your users would be able to access.
You can however disable the ability to save passwords.
And exporting connections now do not include passwords by default, although you can include them if you supply an additional password. -
Non-Geeky name for "Oracle SQL Developer"
At my work place people (mostly non-developers) are using MS-Query to access Oracle database to query and analyses data.
I asked them to use "Oracle SQL Developer", then their response is "It may be complicated, and we are not Developer".
Current name implies user need to be developer, and need to know SQL etc.
Cant we have a non-geeky name?
"SQL Server Management Studio", "MS-Query", "DBDesigner", "TOAD" all sounds non-geeky.
May be "Oracle Data Studio" is better.It has been named "Raptor" before it became SQL-Developer. Just rename the link for your co-workers if they think they cannot use a tool because of its name.
Regards
Marcus -
Invalid Name Pattern in SQL Developer Data Modeler
I am using Data Modeler version 3.3.0.747, I have exported a couple of data models (logical and physical) to an Oracle 11.2.0.3 database. I used the Reporting_Schema_Permissions.sql file to define the ID that owns the repository. Each data model that I exported returned the successful export message.
However when I use Oracle Data Modeler and connect (as a different user) to the repository to generate a report on one of the diagrams I immediately get an error returned. The error is (from the log file in datamodeler\log\datamodeler.log):
2013-04-19 08:36:12,233 [Thread-18] ERROR ReportsGenerationDialog - Generating report from Reporting Schema exception - invalid name pattern: username.OBJECTS_LIST
Where username is the name of the ID being used to generate the report (not the repository owner ID).
I have created public synonyms on the repository tables and views (though I must have missed where that was a requirement) so the repository objects can be seen by other users.
Has anyone encountered this and if so how did you resolve it. I have searched the web (and the Oracle forums) and so far had no hits on this issue. That seems to indicate that there is something I must have missed in the setup or such.
ThanksHi,
I think you didn't grant EXECUTE to package and types. Here is full working script:
DECLARE
CURSOR cur IS SELECT table_name, owner FROM all_tables WHERE owner='<owner>';
BEGIN
FOR rec IN cur LOOP
EXECUTE IMMEDIATE 'GRANT SELECT ON '||'<owner>'||'.'||rec.table_name||' to '||'<another_user>';
EXECUTE IMMEDIATE 'CREATE SYNONYM '||'<another_user>'||'.'||rec.table_name||' FOR '||'<owner>'||'.'||rec.table_name;
END LOOP;
END;
DECLARE
CURSOR cur IS SELECT view_name FROM all_views WHERE owner='<owner>';
BEGIN
FOR rec IN cur LOOP
EXECUTE IMMEDIATE 'GRANT SELECT ON '||'<owner>'||'.'||rec.view_name||' to '||'<another_user>';
EXECUTE IMMEDIATE 'CREATE SYNONYM '||'<another_user>'||'.'||rec.view_name||' FOR '||'<owner>'||'.'||rec.view_name;
END LOOP;
END;
DECLARE
CURSOR cur IS SELECT type_name FROM all_types WHERE owner='<owner>';
BEGIN
FOR rec IN cur LOOP
EXECUTE IMMEDIATE 'GRANT EXECUTE ON '||'<owner>'||'.'||rec.type_name||' to '||'<another_user>';
EXECUTE IMMEDIATE 'CREATE SYNONYM '||'<another_user>'||'.'||rec.type_name||' FOR '||'<owner>'||'.'||rec.type_name;
END LOOP;
END;
GRANT EXECUTE ON <owner>.pkg_osdm_utils to <another_user>;
CREATE SYNONYM <another_user>.pkg_osdm_utils FOR <owner>.pkg_osdm_utils;
There is no document for reporting repository install process. If you are exporting design for first time, the repository is automatically created for you.
When you get new version of DM you can
1. Use new repository
2. Upgrade existing one. If so, the simplest variant is to run /datamodeler/reports/DMRS_Upgrade_Script_<latest_vesrion>. Eventually compile single stored procedure.
Another variant for upgrade is with running osddm_upgr.sql, but there is some error, which is going to be fixed in the next release. -
To find last updated date in sql developer for a procedure or a function
hi
how to to find last updated date in sql developer for a procedure or a function.
i m using sql developer version in 1.2I think you are in the wrong forum...
Anyway you can try
select * from
all_objects o
where o.object_type in ('FUNCTION','PROCEDURE');
you have there the created date, last DDL and timestamp -
How 2 find the "Requests from the SQL Developer Exchange Included" in 2.1.1
Hi,
I would like to explore the new features from 2.1.1
http://www.oracle.com/technology/products/database/sql_developer/files/BugsFixed_v211.html
But can not find them in:
http://apex.oracle.com/pls/otn/f?p=42626:46
Where are they explained...?
Thanks, JuergenThanks K,
good hint with the filtering of the status...!
I was just wondering if you can find the ID's. When you scroll to the end on: http://www.oracle.com/technology/products/database/sql_developer/files/BugsFixed_v211.html
there you find the section "Requests from the SQL Developer Exchange Included" with a lot of IDs...
8411043 : Commit confirmation
8755723 : Copy column name to clipboard (ctrl - shift- C)
8487257 : Do not use ora_rowscn (Request implemented using a preference)
but the filtering is good for me too...
Juergen -
Performance problem with slow VIEW from JDBC (fast from SQL Developer)
Hi all,
I'm experiencing following problem and would like to know if someone else also hit this one before and has a suggestion how to solve it:
I have a pretty complicated SELECT statement that per definition returns only a few rows (~30). With no further optimization it takes ~20 seconds to return the full dataset in Oracle SQL Developer. If you add the */+ PUSH_PRED(name_of_some_inner_view) /* hint (hint is correct, stars got eaten by the OTN-forum syntax), the statement takes less than 0.5s to execute (still in SQL Developer). I saved the statement with the hint as VIEW. Selecting from the VIEW in SQL Developer is also fast.
Now if I call the statement from JDBC (Tomcat webapp), I can see from the server console that the statement is 1:1 100% the same as the one I execute in SQL Developer. Nevertheless it takes about 20 seconds to complete.
Here my details:
SELECT banner FROM v$version;
BANNER
Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
PL/SQL Release 11.2.0.2.0 - Production
CORE 11.2.0.2.0 Production
TNS for 32-bit Windows: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
JDBC Driver used: some old odbc14.jar as well as current odbc6.jar for 11.2.0.2.0 from http://www.oracle.com/technetwork/da...10-090769.html
SQL Developer: current version 3.2.20.09From my reading this could go wrong:
- JDBC doesn't know the VIEW's column data types and Oracle behaves mysterious because of this (=there must be more to the SELECT than just the string, some meta-information)
- For some reason the hint inside the VIEW is not used (unlikely)
I also tried a Table Function/Pipelined table and selected from it as a workaround, but the result is the same: Selecting from Function is fast from SQL Developer, but slow from JDBC. All other statements that come from JDBC are as fast as they should be. I really don't know what to think of this and where the error might be.
Is there some setting that tells Oracle not to use hints when called from JDBC?
Thank you & Best regards,
BlamaHi Bawer,
that's what I'm thinking. Unfortunately I can't post it, as it is library code (not my lib). But in the debug-output I can see the SQL-String sent to the DB (which does include the hint).
But I find the 2nd option you mention more likely anyway: Even if I put the hint into a VIEW and select from the view, the time-difference is there (it's even there if I use Table Functions/Pipelined table and select from the function).
So I'd think it is more likely that something else is happening (e.g. Oracle is configured in a way that it does not use hints when called from JDBC or similar. Or the library sets some session options in order to prevent the usage of hints). But I don't know if there is even the possibility of doing so.
Does the Oracle JDBC driver have the option to set these options?
Does the Oracle DB have the option to set sth. like "ALTER SESSION SET dontUseHints = 'Y';" -
SQL Developer and GeoRaptor problem
Hi All,
I have installed sql developer version 1.5.0.52, And in one schema i have spatial data, but as geo raptor in not installed in sql developer so i am unable to see the Spatial data.
So in order to see the spatial data i installed Geo Raptor as below:
Click menu item "Help" and "Check for update"
2. Dialog "Check for Updates - Welcome"
Click on button "Next".
3. Dialog "Check for Updates - Step 1 of 3: Source"
Add new Update center. Click on button "Add" and insert values:
Name: GeoRaptor
Location: http://georaptor.sourceforge.net/install.xml
And sql developer update sucessfully , but after installation of Geo Raptor as well i am unable to find the Geo Raptor tool in SQL Developer.
Could any one please help me that why Geo Raptor tool is not dispaying in SQL Developer.
Thanks in Advance
VipinVipin,
I am one of the developers for GeoRaptor.
I note that you are using version 1.5.0.52 of SQL Developer.
The current version of SQL Developer works with version 2.1 and above.
Download the latest version of SQL Developer (I run version 2.1.1.64) and reinstall GeoRaptor.
If the install is correct you should see a GeoRaptor menu entry under the View menu pillar. Also, you
should see GeoRaptor commands against the right mouse click menus on tables/sdo_geometry columns.
Let me know if you still have problems.
regards
Simon -
Invalid column index error in sql developer
Hi,
I was trying to create stored procedures, functions and packages in sql developer which is connected to Oracle 11g. My instructor is able to execute all of them without any errors in 10g. However, when I try to execute them, I get- "Invalid column index error". Any suggestions on how to rectify this error?Hi,
That is probably an
ORA-17003: Invalid column index
Which is a JDBC error. Is Java/JDBC somehow involved?
If not, could you please post one of the failing statements?
Regards
Peter -
SQL Developer 4.0: 'Open Declaration' bugs
There are several issues I have with this function:
1) Sometimes, when used, it would just "hang" the UI, loading the CPU for 50% for a few seconds.
2) It doesn't seem to work for functions/procedures outside packages, you have to use 'Popup describe' instead. Is that intended?
3) I don't know if it's actually related to 'Open Declaration', but Logging Page sometimes throws a pair oracle.dbtools.parser.plsql.DictionaryQuery errors, supposedly around the same time hangs occur I may be wrong on this one, but still thought it's worth reporting:
Error 1:
select null name, -1 LINE, -1 COL, null USAGE,
case when obj.object_type like 'JAVA%' then 'JAVA' else obj.object_type end TYPE,
OWNER, case when obj.object_type like 'JAVA%' then 'JAVA' else obj.object_type end OBJECT_TYPE,
obj.OBJECT_NAME
from sys.dba_objects obj where rownum <= 10 and obj.object_type != 'TABLE PARTITION' and obj.object_type != 'TABLE SUBPARTITION' and obj.object_type != 'JAVA CLASS' and object_name like :object_name and object_type = :object_type
union all
select null name, -1 LINE, -1 COL, null USAGE,
case when obj.object_type like 'JAVA%' then 'JAVA' else obj.object_type end TYPE,
OWNER, case when obj.object_type like 'JAVA%' then 'JAVA' else obj.object_type end OBJECT_TYPE,
obj.OBJECT_NAME
from sys.dba_objects obj where rownum <= 10 and obj.object_type != 'TABLE PARTITION' and obj.object_type != 'TABLE SUBPARTITION' and obj.object_type != 'JAVA CLASS' and object_name like :object_name and object_type = :object_type
union all
select * from (select text name, LINE, instr(upper(text),upper(:text)) COL, null USAGE, TYPE, OWNER, type OBJECT_TYPE, name OBJECT_NAME
from sys.all_source where rownum <= 10
and upper(text) like upper(:text1) and name not like 'BIN$%'
and (instr(text,'--')<=0 or instr(text,'--')>instr(upper(text),upper(:text2)))
and (instr(text,'/*')<=0 or instr(text,'/*')>instr(upper(text),upper(:text3)))
and type like 'PACKAGE%' and name = :name
) where col = 1 or substr(name/*text*/,col-1,1)=' '
order by type, line and owner = :owner
Error 2:
ORA-00907: missing right parenthesis
The 'and owner = :owner' part is obviously misplaced, causing the error.
P.S. A bit off-topic: SQLDev gives me quite a lot of various warnings both on logging page and in console. They don't seem to break anything, but should I report them anyway? And should I create a separate thread for each group of these, if I do?Okay, I've done some testing. It's far from exhaustive, but shows that 'Open Declaration' works differently in worksheet and package pl/sql editor, and that it depends on the case of the procedure/function that is inspected!
I also found out the cause of ORA-00907 message.
The cause of hangs also became somewhat possible to determine.
Sorry I couldn't test it more, but I already wasted about 2 hours on it, because I did it on our test (much slower) database, and each hang lasted about half a minute. I also didn't test inter-package 'Open Declaration' behavior, because I still have work to do. Hopefully what I found will be enough.
Also, another note is that "hangs" didn't burn the CPU while I tested it, unlike on production database.
We don't have HR schema anymore, so I unlocked SCOTT/TIGER forgotten by everyone, which had no functions/packages/whatsoever, only 4 tables.
All tests were done under 'SCOTT' user. Here's the test suite:
Creating the necessary function, procedure and package:
create or replace function z_test_opendecl_f return number as
begin
return 1;
end z_test_opendecl_f;
create or replace procedure z_test_opendecl_proc as
begin
null;
end z_test_opendecl_proc;
create or replace package z_test_opendecl_pack is
function call_z_func return number;
procedure call_z_proc;
end z_test_opendecl_pack;
create or replace package body z_test_opendecl_pack is
procedure call_z_proc is
begin
--call lowercase external proc without schema
--popup describe works
--open declaration throws "PL/SQL unit Z_TEST_OPENDECL_PROC does not exist" message box
--AND (nailed it!) writes ORA-00907 message I mentioned earlier in point (3) to logging page.
Z_TEST_OPENDECL_PROC;
--call lowercase external proc without schema
--same behavior as above
z_test_opendecl_proc;
--call mixed case external proc without schema
--same behavior as above
Z_Test_Opendecl_Proc;
--call lowercase external proc with schema
--popup describe works
--open declaration hangs, then opens procedure
scott.z_test_opendecl_proc;
--call mixed case external proc with schema
--popup describe works
--open declaration hangs, then gives messagebox
scott.Z_Test_Opendecl_Proc;
end call_z_proc;
function call_z_func return number is
vRet number;
begin
--Same behavior as with procedures above
vRet := z_test_opendecl_f;
vRet := scott.z_test_opendecl_f;
--Calling the procedure inside the package
--without schema, uppercase
--popup describe opens spec
--open declaration hangs, then opens spec
CALL_Z_PROC;
--without schema, uppercase
--popup describe opens spec
--open declaration hangs, then opens spec
Z_TEST_OPENDECL_PACK.CALL_Z_PROC;
--with schema, uppercase
--popup describe opens 'SCOTT' user popup
--open declaration hangs, then opens spec
SCOTT.Z_TEST_OPENDECL_PACK.CALL_Z_PROC;
--Inline SQL, 'Open Declaration' behavior:
select Z_TEST_OPENDECL_F --gives a messagebox, whatever the case
into vRet
from dual d
where z_test_opendecl_f = 1 -- messagebox
or scott.z_test_opendecl_f = 1 --opens declaration
or CALL_Z_FUNC = 1 -- scrolls to function declaration
or Z_TEST_OPENDECL_PACK.CALL_Z_FUNC = 1 --hangs, opens declaration
or SCOTT.Z_TEST_OPENDECL_PACK.CALL_Z_FUNC = 1; --does NOTHING
end call_z_func;
end z_test_opendecl_pack;
(Comments inside package body apply to Package Body Editor).
Here are the tests for worksheet:
--Worksheet tests
declare
vRet number;
begin
--NO SCHEMA SPECIFIED
--call the procedure
--both popup describe and open declaration open the procedure page
Z_TEST_OPENDECL_PROC;
--call the procedure - lowercase
--both popup describe and open declaration open the procedure page
z_test_opendecl_proc;
--call the procedure - mixed case
--popup describe opens the page
--open declaration shows "PL/SQL unit Z_Test_Opendecl_Proc does not exist" messagebox
Z_Test_Opendecl_Proc;
--call the function
--both popup describe and open declaration open the function page
vRet := Z_TEST_OPENDECL_F;
--call the function - lowercase
--both popup describe and open declaration open the function page
vRet := z_test_opendecl_f;
--call the function - mixed case
--popup describe opens the page
--open declaration shows "PL/SQL unit Z_TEST_opendecl_f does not exist" messagebox
vRet := Z_TEST_opendecl_f;
-- call the package procedure
-- popup describe opens package spec
-- open declaration hangs, then opens package spec
Z_TEST_OPENDECL_PACK.CALL_Z_PROC;
-- call the package function
-- popup describe opens package spec
-- open declaration hangs, then opens package spec
vRet := Z_TEST_OPENDECL_PACK.CALL_Z_FUNC;
-- call the package function - mixed case
-- popup describe opens package spec
-- open declaration hangs, then shows "PL/SQL unit CALL_z_func does not exist" messagebox
vRet := Z_TEST_OPENDECL_PACK.CALL_z_func;
--inline SQL
--Shows the same behavior
select Z_TEST_OPENDECL_F --works
into vRet
from dual
where Z_TEST_OPENDECL_F = 1 -- works
or Z_TEST_OPENDECL_PACK.CALL_Z_FUNC = 1 -- hangs, but works
or Z_TEST_opendecl_f = 1; -- messagebox
--WITH SCHEMA SPECIFIED
--Usual calls mostly exhibit the same behavior, except all of them hang on "Open Declaration" now
-- call the package function
-- popup describe opens 'SCOTT' user popup (!?)
-- open declaration hangs, then opens package spec
vRet := SCOTT.Z_TEST_OPENDECL_PACK.CALL_Z_FUNC;
--inline SQL
--Shows the same behavior
select SCOTT.Z_TEST_OPENDECL_F --works
into vRet
from dual
where SCOTT.Z_TEST_OPENDECL_F = 1 -- works
or SCOTT.Z_TEST_OPENDECL_PACK.CALL_Z_FUNC = 1 -- hangs, but works
or SCOTT.Z_TEST_opendecl_f = 1; -- messagebox
end;
There was also an error on production DB I wasn't able to reproduce while testing:
while editing package body, calling 'Open Declaration' on function name inside inline SQL did nothing - neither the message box appeared nor declaration was opened, it also doesn't hang.
I can't disclose the names, but it looks like this:
select myFunction(t.id,vLocalVar) into vLocalVar2 from tablename t;
We have a lot of objects on production, maybe it times out or something, I don't know. Autocomplete also doesn't work unless I call it explicitly with ctrl+space.
An assumption regarding the hangs: we have a ton of public synonyms and a lot of java objects; the hangs are probably related to poor java object querying performance discussed in neighboring topic. -
Hello,
I'm trying to add an extension to SQL Developer. I download manually RDB for SQL Developer extension and then I follow those instructions :
1 . Click Help menu
2 . Click Search for updates menu item
3 . Install from local file and select installer.zip
4 . Restart SQL Developer
5 . Add some reports
I should have an RDB tab in the new connexion window, but it doesn't work. Then I tried another way :
1 . Click Help menu
2 . Click Search for updates menu item
3 . Check all sources (Oracle SQL Developer, Oracle Extensions, Third Party..), next
4 . Check Oracle Rdb extension for SQL Developer 7.3, next
In this case I have an error saying something like this :
An error occured during the updates download
http://www.oracle.com/ocom/groups/public/@otn/documents/webcontent/*null*
Does anyone has an idea about this problem ?
ThanksYou can in the meantime download the extension yourself, instead of using check for updates. This http://www.oracle.com/technetwork/developer-tools/sql-developer/extensions-083825.html is our extensions page. Select the RDB link to take you their downloads page and you'll find the Oracle Rdb Extension for SQL Developer Release 7.3 on that page.
Quick link is: http://www.oracle.com/technetwork/database/rdb/downloads/index.html
Sue -
HI,
We have Installed OBI Apps V796. Below are the details.
OBI Apps V796
OBIEE 10.1.3.4.1
DAC 10.1.3.4.1
Informatica 8.6.0
We are getting the below error for the task "SDE_ORA_PartyPersonDimension_Customer" when we run the execution plan related to supply chain and order management analytics.
Severity Timestamp Node Thread Message Code Message
ERROR 6/23/2009 8:25:54 PM node01_obiee WRITER_1_*_1 WRT_8229 Database errors occurred:
Database driver error...
Function Name : Execute Multiple
SQL Stmt : INSERT INTO W_PARTY_PER_DS(PARTY_TYPE,FST_NAME,FULL_NAME,MID_NAME,LAST_NAME,DEPARTMENT_NAME,CONTACT_ID,CONTACT_TYPE,FAX_PH_NUM,PAGER_NUM,MOBILE_NUM,WORK_PHONE,SEX_MF_CD,ETHNICITY_CD,MARITAL_STAT_CD,BIRTH_DT,BIRTH_PLACE,DEATH_DT,ST_ADDRESS,CITY,STATE,ZIPCODE,COUNTRY,EMAIL_ADDR,JOB_TITLE,ANNL_INCOME,SUPPRESS_EMAIL_FLG,PROF_TITLE,STATUS_CD,ST_ADDRESS2,ST_ADDRESS3,ST_ADDRESS4,CREATED_BY_ID,CHANGED_BY_ID,CREATED_ON_DT,CHANGED_ON_DT,AUX1_CHANGED_ON_DT,AUX2_CHANGED_ON_DT,AUX3_CHANGED_ON_DT,AUX4_CHANGED_ON_DT,SRC_EFF_FROM_DT,SRC_EFF_TO_DT,DELETE_FLG,DATASOURCE_NUM_ID,INTEGRATION_ID,TENANT_ID,X_CUSTOM,CUSTOMER_NUM) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ".
As a work around we tried by changing the Target load type option to normal(previously it is bulk) and still the task failed. Also tried by enabling the Constraint based loading option and still the tas got failed.
Any suggestions............
As
Regards
Venkatesh.Exactly same problem I'm also facing. The log is not showing any exact error information for the cause. And the surprise thing is when i'm running the debugger its inserting all the records. But when i run the task it is failing. Here is the log.
DIRECTOR> VAR_27028 Use override value [DataWarehouse] for session parameter:[$DBConnection_OLAP].
DIRECTOR> VAR_27028 Use override value [ORA_11_5_10] for session parameter:[$DBConnection_OLTP].
DIRECTOR> VAR_27028 Use override value [ORA_11_5_10.DATAWAREHOUSE.SDE_ORA11510_Adaptor.SDE_ORA_PartyPersonDimension_Customer_Full.log] for session parameter:[$PMSessionLogFile].
DIRECTOR> VAR_27028 Use override value [4] for mapping parameter:[$$DATASOURCE_NUM_ID].
DIRECTOR> VAR_27027 Use default value [] for mapping parameter:[mplt_BC_ORA_PartyPersonDimension.$$Hint1].
DIRECTOR> VAR_27027 Use default value [] for mapping parameter:[mplt_BC_ORA_PartyPersonDimension.$$Hint2].
DIRECTOR> VAR_27027 Use default value [] for mapping parameter:[mplt_BC_ORA_PartyPersonDimension.$$LAST_EXTRACT_DATE].
DIRECTOR> VAR_27028 Use override value [DEFAULT] for mapping parameter:[$$TENANT_ID].
DIRECTOR> TM_6014 Initializing session [SDE_ORA_PartyPersonDimension_Customer_Full] at [Mon Dec 28 19:10:26 2009].
DIRECTOR> TM_6683 Repository Name: [AA_REPOSITORY_SERVICE]
DIRECTOR> TM_6684 Server Name: [AA_INTEGRATION_SERVICE]
DIRECTOR> TM_6686 Folder: [SDE_ORA11510_Adaptor]
DIRECTOR> TM_6685 Workflow: [SDE_ORA_PartyPersonDimension_Customer_Full] Run Instance Name: [] Run Id: [1371]
DIRECTOR> TM_6101 Mapping name: SDE_ORA_PartyPersonDimension_Customer [version 1].
DIRECTOR> TM_6963 Pre 85 Timestamp Compatibility is Enabled
DIRECTOR> TM_6964 Date format for the Session is [MM/DD/YYYY HH24:MI:SS]
DIRECTOR> TM_6703 Session [SDE_ORA_PartyPersonDimension_Customer_Full] is run by 32-bit Integration Service [node01_obiee], version [8.6.1 HotFix6], build [0622].
MANAGER> PETL_24058 Running Partition Group [1].
MANAGER> PETL_24000 Parallel Pipeline Engine initializing.
MANAGER> PETL_24001 Parallel Pipeline Engine running.
MANAGER> PETL_24003 Initializing session run.
MAPPING> CMN_1569 Server Mode: [UNICODE]
MAPPING> CMN_1570 Server Code page: [UTF-8 encoding of Unicode]
MAPPING> TM_6151 The session sort order is [Binary].
MAPPING> TM_6185 Warning. Code page validation is disabled in this session.
MAPPING> TM_6156 Using low precision processing.
MAPPING> TM_6180 Deadlock retry logic will not be implemented.
MAPPING> TM_6307 DTM error log disabled.
MAPPING> TE_7022 TShmWriter: Initialized
MAPPING> DBG_21075 Connecting to database [BIDB], user [AABAW]
MAPPING> CMN_1716 Lookup [Lkp_W_ORA_PARTY_CONTACT_PS] uses database connection [Relational:DataWarehouse] in code page [MS Windows Latin 1 (ANSI), superset of Latin1]
MAPPING> CMN_1761 Timestamp Event: [Mon Dec 28 19:10:26 2009]
MAPPING> TE_7004 Transformation Parse Warning [IIF(ISNULL(CONTACT_PARTY_ID||DATASOURCE_NUM_ID), '', 'Contact')]; transformation continues...
MAPPING> CMN_1761 Timestamp Event: [Mon Dec 28 19:10:26 2009]
MAPPING> TE_7004 Transformation Parse Warning [<<PM Parse Warning>> [||]: operand converted to a string
... IIF(ISNULL(CONTACT_PARTY_ID||>>>>DATASOURCE_NUM_ID<<<<), '', 'Contact')]; transformation continues...
MAPPING> TM_6007 DTM initialized successfully for session [SDE_ORA_PartyPersonDimension_Customer_Full]
DIRECTOR> PETL_24033 All DTM Connection Info: [<NONE>].
MANAGER> PETL_24004 Starting pre-session tasks. : (Mon Dec 28 19:10:26 2009)
MANAGER> PETL_24027 Pre-session task completed successfully. : (Mon Dec 28 19:10:26 2009)
DIRECTOR> PETL_24006 Starting data movement.
MAPPING> TM_6660 Total Buffer Pool size is 12582912 bytes and Block size is 128000 bytes.
READER_1_1_1> DBG_21438 Reader: Source is [DEV01], user [apps]
READER_1_1_1> BLKR_16051 Source database connection [ORA_11_5_10] code page: [MS Windows Latin 1 (ANSI), superset of Latin1]
READER_1_1_1> BLKR_16003 Initialization completed successfully.
WRITER_1_*_1> WRT_8146 Writer: Target is database [BIDB], user [AABAW], bulk mode [ON]
WRITER_1_*_1> WRT_8106 Warning! Bulk Mode session - recovery is not guaranteed.
WRITER_1_*_1> WRT_8221 Target database connection [DataWarehouse] code page: [MS Windows Latin 1 (ANSI), superset of Latin1]
WRITER_1_*_1> WRT_8124 Target Table W_PARTY_PER_DS :SQL INSERT statement:
INSERT INTO W_PARTY_PER_DS(PARTY_TYPE,FST_NAME,FULL_NAME,MID_NAME,LAST_NAME,DEPARTMENT_NAME,CONTACT_ID,CONTACT_TYPE,FAX_PH_NUM,PAGER_NUM,MOBILE_NUM,WORK_PHONE,SEX_MF_CD,ETHNICITY_CD,MARITAL_STAT_CD,BIRTH_DT,BIRTH_PLACE,DEATH_DT,ST_ADDRESS,CITY,STATE,ZIPCODE,COUNTRY,EMAIL_ADDR,JOB_TITLE,ANNL_INCOME,CON_ACTIVE_FLG1,SUPPRESS_EMAIL_FLG,PROF_TITLE,STATUS_CD,ST_ADDRESS2,ST_ADDRESS3,ST_ADDRESS4,CREATED_BY_ID,CHANGED_BY_ID,CREATED_ON_DT,CHANGED_ON_DT,AUX1_CHANGED_ON_DT,AUX2_CHANGED_ON_DT,AUX3_CHANGED_ON_DT,AUX4_CHANGED_ON_DT,SRC_EFF_FROM_DT,SRC_EFF_TO_DT,DELETE_FLG,DATASOURCE_NUM_ID,INTEGRATION_ID,TENANT_ID,X_CUSTOM,CUSTOMER_NUM) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
WRITER_1_*_1> WRT_8124 Target Table W_PARTY_PER_DS :SQL UPDATE statement:
UPDATE W_PARTY_PER_DS SET PARTY_TYPE = ?, FST_NAME = ?, FULL_NAME = ?, MID_NAME = ?, LAST_NAME = ?, DEPARTMENT_NAME = ?, CONTACT_ID = ?, CONTACT_TYPE = ?, FAX_PH_NUM = ?, PAGER_NUM = ?, MOBILE_NUM = ?, WORK_PHONE = ?, SEX_MF_CD = ?, ETHNICITY_CD = ?, MARITAL_STAT_CD = ?, BIRTH_DT = ?, BIRTH_PLACE = ?, DEATH_DT = ?, ST_ADDRESS = ?, CITY = ?, STATE = ?, ZIPCODE = ?, COUNTRY = ?, EMAIL_ADDR = ?, JOB_TITLE = ?, ANNL_INCOME = ?, CON_ACTIVE_FLG1 = ?, SUPPRESS_EMAIL_FLG = ?, PROF_TITLE = ?, STATUS_CD = ?, ST_ADDRESS2 = ?, ST_ADDRESS3 = ?, ST_ADDRESS4 = ?, CREATED_BY_ID = ?, CHANGED_BY_ID = ?, CREATED_ON_DT = ?, CHANGED_ON_DT = ?, AUX1_CHANGED_ON_DT = ?, AUX2_CHANGED_ON_DT = ?, AUX3_CHANGED_ON_DT = ?, AUX4_CHANGED_ON_DT = ?, SRC_EFF_TO_DT = ?, DELETE_FLG = ?, TENANT_ID = ?, X_CUSTOM = ?, CUSTOMER_NUM = ? WHERE SRC_EFF_FROM_DT = ? AND DATASOURCE_NUM_ID = ? AND INTEGRATION_ID = ?
WRITER_1_*_1> WRT_8124 Target Table W_PARTY_PER_DS :SQL DELETE statement:
DELETE FROM W_PARTY_PER_DS WHERE SRC_EFF_FROM_DT = ? AND DATASOURCE_NUM_ID = ? AND INTEGRATION_ID = ?
WRITER_1_*_1> WRT_8270 Target connection group #1 consists of target(s) [W_PARTY_PER_DS]
WRITER_1_*_1> WRT_8003 Writer initialization complete.
READER_1_1_1> BLKR_16007 Reader run started.
READER_1_1_1> RR_4029 SQ Instance [mplt_BC_ORA_PartyPersonDimension.SQ_HZ_PERSON_PARTY] User specified SQL Query [SELECT b1.party_id, b1.party_type, b1.person_name, b1.person_first_name, b1.person_middle_name, b1.person_last_name, b1.status, b1.phone_area_code, b1.phone_number, b1.address1, b1.address2, b1.address3, b1.address4, b1.postal_code, b1.city, b1.state, b1.country, b1.email_address, b1.date_of_birth, b1.place_of_birth, b1.date_of_death, b1.gender, b1.declared_ethnicity, b1.marital_status, b1.person_title, b1.personal_income, b1.do_not_mail_flag, b1.created_by, b1.creation_date, b1.last_updated_by, b1.last_update_date1 last_update_date, b1.last_update_date2 last_update_date, b1.last_update_date3 last_update_date, b1.party_number, b1.ACCNT_FLG FROM (SELECT per.party_id, pty.party_type, per.person_name, per.person_first_name, per.person_middle_name, per.person_last_name, pty.status, cnp.phone_area_code, cnp.phone_number, pty.address1, pty.address2, pty.address3, pty.address4, pty.postal_code, pty.city, pty.state, pty.country, pty.email_address, per.date_of_birth, per.place_of_birth, per.date_of_death, per.gender, per.declared_ethnicity, per.marital_status, per.person_title, per.personal_income, pty.do_not_mail_flag, per.created_by, per.creation_date, per.last_updated_by, per.last_update_date last_update_date1, pty.last_update_date last_update_date2, cnp.last_update_date last_update_date3, pty.party_number, (CASE WHEN acct.PARTY_ID IS NOT NULL THEN 'Y' END) ACCNT_FLG, MAX (per.person_profile_id) OVER (PARTITION BY per.party_id) max_person_profile_id, per.person_profile_id FROM hz_person_profiles per, hz_parties pty, hz_contact_points cnp, (SELECT a1.party_id, COUNT (1) cnt FROM (SELECT per.party_id FROM hz_person_profiles per UNION ALL SELECT pty.party_id FROM hz_parties pty UNION ALL SELECT --/*+ use_hash(pty cnp) index_ffs(pty, hz_parties_u1)*/ pty.party_id FROM hz_parties pty, hz_contact_points cnp WHERE pty.party_id = cnp.owner_table_id ) a1 GROUP BY party_id) TEMP, hz_cust_accounts acct WHERE per.party_id = TEMP.party_id AND per.party_id = pty.party_id AND pty.party_id = cnp.owner_table_id(+) AND cnp.owner_table_name(+) = 'HZ_PARTIES' AND cnp.contact_point_type(+) = 'PHONE' AND cnp.primary_flag(+) = 'Y' AND acct.PARTY_ID(+) = pty.PARTY_ID) b1 WHERE b1.person_profile_id = b1.max_person_profile_id HAVING COUNT (1) >= 0 GROUP BY b1.party_id, b1.party_type, b1.person_name, b1.person_first_name, b1.person_middle_name, b1.person_last_name, b1.status, b1.phone_area_code, b1.phone_number, b1.address1, b1.address2, b1.address3, b1.address4, b1.postal_code, b1.city, b1.state, b1.country, b1.email_address, b1.date_of_birth, b1.place_of_birth, b1.date_of_death, b1.gender, b1.declared_ethnicity, b1.marital_status, b1.person_title, b1.personal_income, b1.do_not_mail_flag, b1.created_by, b1.creation_date, b1.last_updated_by, b1.last_update_date1, b1.last_update_date2, b1.last_update_date3, b1.party_number, b1.ACCNT_FLG]
READER_1_1_1> RR_4049 SQL Query issued to database : (Mon Dec 28 19:10:26 2009)
WRITER_1_*_1> WRT_8005 Writer run started.
WRITER_1_*_1> WRT_8158
*****START LOAD SESSION*****
Load Start Time: Mon Dec 28 19:10:26 2009
Target tables:
W_PARTY_PER_DS
READER_1_1_1> RR_4050 First row returned from database to reader : (Mon Dec 28 19:10:29 2009)
LKPDP_1> DBG_21312 Lookup Transformation [Lkp_W_ORA_PARTY_CONTACT_PS]: Lookup override sql to create cache: SELECT W_ORA_PARTY_CONTACT_PS.DEPARTMENT AS DEPARTMENT, W_ORA_PARTY_CONTACT_PS.ORG_CONTACT_ID AS ORG_CONTACT_ID, W_ORA_PARTY_CONTACT_PS.CONTACT_NUMBER AS CONTACT_NUMBER, W_ORA_PARTY_CONTACT_PS.JOB_TITLE AS JOB_TITLE, W_ORA_PARTY_CONTACT_PS.DATASOURCE_NUM_ID AS DATASOURCE_NUM_ID, W_ORA_PARTY_CONTACT_PS.CONTACT_PARTY_ID AS CONTACT_PARTY_ID FROM W_ORA_PARTY_CONTACT_PS WHERE CUST_ACCOUNT_ROLE_ID=0 ORDER BY DATASOURCE_NUM_ID,CONTACT_PARTY_ID,DEPARTMENT,ORG_CONTACT_ID,CONTACT_NUMBER,JOB_TITLE
LKPDP_1> TE_7212 Increasing [Index Cache] size for transformation [Lkp_W_ORA_PARTY_CONTACT_PS] from [1048576] to [1392640].
LKPDP_1> TM_6660 Total Buffer Pool size is 609824 bytes and Block size is 65536 bytes.
LKPDP_1:READER_1_1> DBG_21438 Reader: Source is [BIDB], user [AABAW]
LKPDP_1:READER_1_1> BLKR_16051 Source database connection [DataWarehouse] code page: [MS Windows Latin 1 (ANSI), superset of Latin1]
LKPDP_1:READER_1_1> BLKR_16003 Initialization completed successfully.
LKPDP_1:READER_1_1> BLKR_16007 Reader run started.
LKPDP_1:READER_1_1> RR_4049 SQL Query issued to database : (Mon Dec 28 19:10:29 2009)
LKPDP_1:READER_1_1> RR_4050 First row returned from database to reader : (Mon Dec 28 19:10:30 2009)
LKPDP_1:TRANSF_1_1> DBG_21079 Creating Lookup Cache : (Mon Dec 28 19:10:30 2009)
LKPDP_1:READER_1_1> BLKR_16008 Reader run completed.
LKPDP_1:TRANSF_1_1> DBG_21682 Lookup table row count : 3247
LKPDP_1:TRANSF_1_1> DBG_21297 Lookup cache row count : 3238
LKPDP_1:TRANSF_1_1> DBG_21294 Lookup cache creation completed : (Mon Dec 28 19:10:30 2009)
LKPDP_1:TRANSF_1_1> CMN_1671 Created new cache files PMLKUP16713_5_0_1371W32.[dat/idx] in directory E:\Informatica\PowerCenter861\server\infa_shared\Cache for Lookup [Lkp_W_ORA_PARTY_CONTACT_PS].
LKPDP_1:TRANSF_1_1> DBG_21641 Lkp_W_ORA_PARTY_CONTACT_PS: Index cache size = [1392640], Data cache size = [2097152]
WRITER_1_*_1> WRT_8167 Start loading table [W_PARTY_PER_DS] at: Mon Dec 28 19:10:29 2009
WRITER_1_*_1> CMN_1761 Timestamp Event: [Mon Dec 28 19:10:30 2009]
WRITER_1_*_1> WRT_8229 Database errors occurred:
Database driver error...
Function Name : Execute Multiple
SQL Stmt : INSERT INTO W_PARTY_PER_DS(PARTY_TYPE,FST_NAME,FULL_NAME,MID_NAME,LAST_NAME,DEPARTMENT_NAME,CONTACT_ID,CONTACT_TYPE,FAX_PH_NUM,PAGER_NUM,MOBILE_NUM,WORK_PHONE,SEX_MF_CD,ETHNICITY_CD,MARITAL_STAT_CD,BIRTH_DT,BIRTH_PLACE,DEATH_DT,ST_ADDRESS,CITY,STATE,ZIPCODE,COUNTRY,EMAIL_ADDR,JOB_TITLE,ANNL_INCOME,CON_ACTIVE_FLG1,SUPPRESS_EMAIL_FLG,PROF_TITLE,STATUS_CD,ST_ADDRESS2,ST_ADDRESS3,ST_ADDRESS4,CREATED_BY_ID,CHANGED_BY_ID,CREATED_ON_DT,CHANGED_ON_DT,AUX1_CHANGED_ON_DT,AUX2_CHANGED_ON_DT,AUX3_CHANGED_ON_DT,AUX4_CHANGED_ON_DT,SRC_EFF_FROM_DT,SRC_EFF_TO_DT,DELETE_FLG,DATASOURCE_NUM_ID,INTEGRATION_ID,TENANT_ID,X_CUSTOM,CUSTOMER_NUM) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
WRITER_1_*_1> CMN_1761 Timestamp Event: [Mon Dec 28 19:10:30 2009]
WRITER_1_*_1> WRT_8425 ERROR: Writer execution failed.
WRITER_1_*_1> WRT_8333 Rolling back all the targets due to fatal session error.
WRITER_1_*_1> CMN_1761 Timestamp Event: [Mon Dec 28 19:10:30 2009]
WRITER_1_*_1> CMN_1022 Database driver error...
CMN_1022 []
WRITER_1_*_1> CMN_1761 Timestamp Event: [Mon Dec 28 19:10:30 2009]
WRITER_1_*_1> WRT_8183 Rollback failed for the target [W_PARTY_PER_DS]
WRITER_1_*_1> CMN_1761 Timestamp Event: [Mon Dec 28 19:10:30 2009]
WRITER_1_*_1> WRT_8081 Writer run terminated. [Error in loading data to target table [W_PARTY_PER_DS]]
WRITER_1_*_1> WRT_8168 End loading table [W_PARTY_PER_DS] at: Mon Dec 28 19:10:30 2009
WRITER_1_*_1> WRT_8035 Load complete time: Mon Dec 28 19:10:30 2009
LOAD SUMMARY
============
WRT_8036 Target: W_PARTY_PER_DS (Instance Name: [W_PARTY_PER_DS])
WRT_8038 Inserted rows - Requested: 1568 Applied: 1552 Rejected: 0 Affected: 1552
WRITER_1__1> WRT_8043 ****END LOAD SESSION*****
TRANSF_1_1_1> CMN_1761 Timestamp Event: [Mon Dec 28 19:10:30 2009]
TRANSF_1_1_1> TM_6085 A fatal error occurred at transformation [W_PARTY_PER_DS], and the session is terminating.
TRANSF_1_1_1> CMN_1761 Timestamp Event: [Mon Dec 28 19:10:30 2009]
TRANSF_1_1_1> TM_6085 A fatal error occurred at transformation [mplt_SA_ORA_PartyPersonDimension.EXP_PARTY_PERSON], and the session is terminating.
TRANSF_1_1_1> CMN_1761 Timestamp Event: [Mon Dec 28 19:10:30 2009]
TRANSF_1_1_1> TM_6085 A fatal error occurred at transformation [mplt_SA_ORA_PartyPersonDimension.EXP_PARTY_PERSON], and the session is terminating.
TRANSF_1_1_1> CMN_1761 Timestamp Event: [Mon Dec 28 19:10:30 2009]
TRANSF_1_1_1> TM_6085 A fatal error occurred at transformation [mplt_BC_ORA_PartyPersonDimension.EXP_PER_PARTY], and the session is terminating.
TRANSF_1_1_1> CMN_1761 Timestamp Event: [Mon Dec 28 19:10:30 2009]
TRANSF_1_1_1> TM_6085 A fatal error occurred at transformation [mplt_BC_ORA_PartyPersonDimension.EXP_PER_PARTY], and the session is terminating.
TRANSF_1_1_1> CMN_1761 Timestamp Event: [Mon Dec 28 19:10:30 2009]
TRANSF_1_1_1> TM_6085 A fatal error occurred at transformation [mplt_BC_ORA_PartyPersonDimension.SQ_HZ_PERSON_PARTY], and the session is terminating.
TRANSF_1_1_1> CMN_1761 Timestamp Event: [Mon Dec 28 19:10:30 2009]
TRANSF_1_1_1> TM_6085 A fatal error occurred at transformation [mplt_BC_ORA_PartyPersonDimension.SQ_HZ_PERSON_PARTY], and the session is terminating.
TRANSF_1_1_1> CMN_1761 Timestamp Event: [Mon Dec 28 19:10:30 2009]
TRANSF_1_1_1> TM_6085 A fatal error occurred at transformation [mplt_BC_ORA_PartyPersonDimension.SQ_HZ_PERSON_PARTY], and the session is terminating.
TRANSF_1_1_1> DBG_21511 TE: Fatal Transformation Error.
MANAGER> PETL_24031
***** RUN INFO FOR TGT LOAD ORDER GROUP [1], CONCURRENT SET [1] *****
Thread [READER_1_1_1] created for [the read stage] of partition point [mplt_BC_ORA_PartyPersonDimension.SQ_HZ_PERSON_PARTY] has completed.
Total Run Time = [3.765415] secs
Total Idle Time = [0.781122] secs
Busy Percentage = [79.255350]
Thread [TRANSF_1_1_1] created for [the transformation stage] of partition point [mplt_BC_ORA_PartyPersonDimension.SQ_HZ_PERSON_PARTY] has completed.
Total Run Time = [1.001440] secs
Total Idle Time = [0.690994] secs
Busy Percentage = [30.999937]
Transformation-specific statistics for this thread were not accurate enough to report.
Thread [WRITER_1_*_1] created for [the write stage] of partition point [W_PARTY_PER_DS] has completed. The total run time was insufficient for any meaningful statistics.
MAPPING> CMN_1793 The index cache size that would hold [3238] rows in the lookup table for [Lkp_W_ORA_PARTY_CONTACT_PS], in memory, is [696320] bytes
MAPPING> CMN_1792 The data cache size that would hold [3238] rows in the lookup table for [Lkp_W_ORA_PARTY_CONTACT_PS], in memory, is [1908736] bytes
MANAGER> PETL_24005 Starting post-session tasks. : (Mon Dec 28 19:10:30 2009)
MANAGER> PETL_24029 Post-session task completed successfully. : (Mon Dec 28 19:10:30 2009)
MAPPING> TE_7216 Deleting cache files [PMLKUP16713_5_0_1371W32] for transformation [Lkp_W_ORA_PARTY_CONTACT_PS].
MAPPING> TM_6018 The session completed with [0] row transformation errors.
MANAGER> PETL_24002 Parallel Pipeline Engine finished.
DIRECTOR> PETL_24013 Session run completed with failure.
DIRECTOR> TM_6022
SESSION LOAD SUMMARY
================================================
DIRECTOR> TM_6252 Source Load Summary.
DIRECTOR> CMN_1740 Table: [SQ_HZ_PERSON_PARTY] (Instance Name: [mplt_BC_ORA_PartyPersonDimension.SQ_HZ_PERSON_PARTY])
Output Rows [1788], Affected Rows [1788], Applied Rows [1788], Rejected Rows [0]
DIRECTOR> TM_6253 Target Load Summary.
DIRECTOR> CMN_1740 Table: [W_PARTY_PER_DS] (Instance Name: [W_PARTY_PER_DS])
Output Rows [1552], Affected Rows [1552], Applied Rows [1552], Rejected Rows [0]
DIRECTOR> TM_6023
===================================================
DIRECTOR> TM_6020 Session [SDE_ORA_PartyPersonDimension_Customer_Full] completed at [Mon Dec 28 19:10:31 2009]. -
Typing letter doesn't skip to connection name in SQL Developer 1.5
When I open SQL Developer 1.5 and execute a query, a popup window lets me choose a database connection. In SQL Developer 1.2.1 and before, I could type a letter to jump to a specific name, similar to any dropdown menu. However, this doesn't work in SQL Developer 1.5, where I have to mouse click to find the connection. This keyboard functionality was very useful and should be put back. Thanks.
Yep... ur right... I can confirm this.
WinXP SP2
Oracle 10g
SQL Dev 1.5.1.5440
Java 6 U6
-Tim -
Password change fails in SQL Developer with verify function...
A couple of months ago I enforced a password verify function on our 11.2.0.3 databases and also one legacy 10.2.0.4 database.
At the time I tested on my account (which had elevated privileges...doh!). Now some users are hitting expiry, they can't change it via SQL Developer.
If I create a user with 'create session' privilege and set their profile to one that uses the verify function (see both below), I then log in to SQL Developer (we have tried with versions 3.1 (Windows) and 3.2 (Linux) with same failure results.
BTW,.. the password verify function enforces the following:
password must be minimum of 8 characters
password must not be the same as the user name, or user name (1-100)
password must contain at least a single digit
password must contain at least a single character
1. Works = I log into the local server and run command line SQLPlus, type 'password' and update. I can successfully change my password.
2. Fails = I log into the local server and run command line SQLPlus, type 'alter user <me> identified by <newpwd>;' I get:
TEST: SUTEMP > alter user sutemp identified by carport9999;
alter user sutemp identified by carport9999
ERROR at line 1:
ORA-28221: REPLACE not specified
This error is because the account does not have the 'alter user' privilege. I'm okay with this, as I don't want our users having this privilege.
3. I start SQL Developer 3.2, type 'alter user <me> identified by <newpwd>;' I get the same ORA-28221 error as above. That is fine, and as expected.
4. Now in SQL Developer, I type 'password', set a valid password, but I get 'Failed to change password' in the Script Output tab.
I have a database 'after servererror on database' trigger set, and querying the database table it is logging into, I see a record with a date stamp matching my failure with a server_error=28221 (the same as above).
So I'm wondering if I'm doing something wrong here, or if this is a bug in SQL Developer. I don't want standard users having 'alter user' privileges, but I do want to enforce password verification.
I get the same result on three 11.2.0.3 databases (haven't tried any more but suspect same results for others) and one legacy 10.2.0.4 database, and using SQL Developer 3.1 and 3.2.
DBA_PROFILE used:
PROFILE
RESOURCE_NAME
RESOURCE LIMIT
CTRU
COMPOSITE_LIMIT
KERNEL DEFAULT
CTRU
SESSIONS_PER_USER
KERNEL 10
CTRU
CPU_PER_SESSION
KERNEL DEFAULT
CTRU
CPU_PER_CALL
KERNEL DEFAULT
CTRU
LOGICAL_READS_PER_SESSION KERNEL DEFAULT
CTRU
LOGICAL_READS_PER_CALL
KERNEL DEFAULT
CTRU
IDLE_TIME
KERNEL DEFAULT
CTRU
CONNECT_TIME
KERNEL DEFAULT
CTRU
PRIVATE_SGA
KERNEL DEFAULT
CTRU
FAILED_LOGIN_ATTEMPTS
PASSWORD 10
CTRU
PASSWORD_LIFE_TIME
PASSWORD 180
CTRU
PASSWORD_REUSE_TIME
PASSWORD DEFAULT
CTRU
PASSWORD_REUSE_MAX
PASSWORD 5
CTRU
PASSWORD_VERIFY_FUNCTION PASSWORD VERIFY_FUNCTION_11G
CTRU
PASSWORD_LOCK_TIME
PASSWORD .002
CTRU
PASSWORD_GRACE_TIME
PASSWORD 21
16 rows selected.
Verify Function used:
$ cat utlpwdmg.sql
Rem
Rem $Header: utlpwdmg.sql 02-aug-2006.08:18:05 asurpur Exp $
Rem
Rem utlpwdmg.sql
Rem
Rem Copyright (c) 2006, Oracle. All rights reserved.
Rem
Rem NAME
Rem utlpwdmg.sql - script for Default Password Resource Limits
Rem
Rem DESCRIPTION
Rem This is a script for enabling the password management features
Rem by setting the default password resource limits.
Rem
Rem NOTES
Rem This file contains a function for minimum checking of password
Rem complexity. This is more of a sample function that the customer
Rem can use to develop the function for actual complexity checks that the
Rem customer wants to make on the new password.
Rem
Rem MODIFIED (MM/DD/YY)
Rem suren 05/09/13 - customise for NIHI use
Rem asurpur 05/30/06 - fix - 5246666 beef up password complexity check
Rem nireland 08/31/00 - Improve check for username=password. #1390553
Rem nireland 06/28/00 - Fix null old password test. #1341892
Rem asurpur 04/17/97 - Fix for bug479763
Rem asurpur 12/12/96 - Changing the name of password_verify_function
Rem asurpur 05/30/96 - New script for default password management
Rem asurpur 05/30/96 - Created
Rem
-- This script sets the default password resource parameters
-- This script needs to be run to enable the password features.
-- However the default resource parameters can be changed based
-- on the need.
-- A default password complexity function is also provided.
-- This function makes the minimum complexity checks like
-- the minimum length of the password, password not same as the
-- username, etc. The user may enhance this function according to
-- the need.
-- This function must be created in SYS schema.
-- connect sys/<password> as sysdba before running the script
CREATE OR REPLACE FUNCTION verify_function_11G
(username varchar2,
password varchar2,
old_password varchar2)
RETURN boolean IS
n boolean;
m integer;
differ integer;
isdigit boolean;
ischar boolean;
ispunct boolean;
db_name varchar2(40);
digitarray varchar2(20);
punctarray varchar2(25);
chararray varchar2(52);
i_char varchar2(10);
simple_password varchar2(10);
reverse_user varchar2(32);
BEGIN
digitarray:= '0123456789';
chararray:= 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
-- Check for the minimum length of the password
IF length(password) < 8 THEN
raise_application_error(-20001, 'Password length less than 8');
END IF;
-- Check if the password is same as the username or username(1-100)
IF NLS_LOWER(password) = NLS_LOWER(username) THEN
raise_application_error(-20002, 'Password same as or similar to user');
END IF;
FOR i IN 1..100 LOOP
i_char := to_char(i);
if NLS_LOWER(username)|| i_char = NLS_LOWER(password) THEN
raise_application_error(-20005, 'Password same as or similar to user name ');
END IF;
END LOOP;
-- Check if the password contains at least one letter, one digit
-- 1. Check for the digit
isdigit:=FALSE;
m := length(password);
FOR i IN 1..10 LOOP
FOR j IN 1..m LOOP
IF substr(password,j,1) = substr(digitarray,i,1) THEN
isdigit:=TRUE;
GOTO findchar;
END IF;
END LOOP;
END LOOP;
IF isdigit = FALSE THEN
raise_application_error(-20008, 'Password must contain at least one digit, one character');
END IF;
-- 2. Check for the character
<<findchar>>
ischar:=FALSE;
FOR i IN 1..length(chararray) LOOP
FOR j IN 1..m LOOP
IF substr(password,j,1) = substr(chararray,i,1) THEN
ischar:=TRUE;
GOTO endsearch;
END IF;
END LOOP;
END LOOP;
IF ischar = FALSE THEN
raise_application_error(-20009, 'Password must contain at least one digit, and one character');
END IF;
<<endsearch>>
-- Check if the password differs from the previous password by at least
-- 3 letters
IF old_password IS NOT NULL THEN
differ := length(old_password) - length(password);
differ := abs(differ);
IF differ < 3 THEN
IF length(password) < length(old_password) THEN
m := length(password);
ELSE
m := length(old_password);
END IF;
FOR i IN 1..m LOOP
IF substr(password,i,1) != substr(old_password,i,1) THEN
differ := differ + 1;
END IF;
END LOOP;
IF differ < 3 THEN
raise_application_error(-20011, 'Password should differ from the old password by at least 3 characters');
END IF;
END IF;
END IF;
-- Everything is fine; return TRUE ;
RETURN(TRUE);
END;
alter profile ctru limit password_verify_function verify_function_11g;
alter profile default limit password_verify_function verify_function_11g;
alter profile web_and_it limit password_verify_function verify_function_11g;okay,... I just saw another website which shows I should put in the 'replace <oldpwd>' clause in.
This works in SQL Developer: alter user sutemp identified by carport999 replace garage999;
So why does the 'password' command fail? (Developers: it would also be helpful to have the ORA- error displayed as opposed to 'Failed to change password')
Maybe you are looking for
-
How can I mark an appointment as ""private" on my calendar?
Is it possible to mark appointments as private on my iPhone and iPad as I can on my PC? If so, how? This is a critical feature for most business people, and needs to be added if has not already. This is a simple feature that is very important to most
-
Accounts can only be part of one Family at a time.
I just upgraded my Mac Book Pro to Yosemite and get the following error when trying to start up Family Sharing {my appleID} "is used for sharing purchases in another Family. Accounts can only be part of one Family at a time." I'm not sure what that
-
How can i raise events from a class?
Hi all, i've a problem with events.. how can in java to raise an event and to catch him? For example i have ha class Counter like this: public class Counter int[] vettore = new int [10]; int vetCnt = 0; void addNumber(int number) if (vetCnt < 10) vet
-
Session Bean ejbCreate( parm ) Does Not Work in App Server 8 2005 Q2 Editi
I have the following in my session bean: public class aauthfacadeBean implements SessionBean { public void ejbCreate() throws CreateException { public void ejbCreate( boolean logActivity, String dbCodedNameAauth, String uname, String pswd ) throws Cr
-
Selling & purchasing in subcontracting
hi gurus my secenario is like this 1) I m issue my A class material on free issue challan with excise gate pass mentioning assess.value & duty on it.(availling duty to vendor) 2) then subcontractor add some component & charge me for labour charge + c