Administration of APEX in SQL Developer with Proxy Authentication impossibl

Hello!
We are using latest version of SQL Developer to administer APEX. We are connecting to the database with proxy authentication. The syntax is:
personal_user[apex_ws_owner]
e.g.: mdecker[apex_demo]
When trying to deploy APEX application I go to "Database Object" -> Application Express -> Application1 [100] -> right mouse click: "Deploy Application". Then I select the appropriate database identifier and next, I am presented with a screen showing import options. In second line, it says: "Parsing Schema: MDECKER".
This is wrong: it has to be Parsing Schema: APEX_DEMO. It seems that managing APEX with SQL Developer does not support Proxy Authentication.
Could you please confirm?
Is there a way to formally ask for this enhancement?
Best regards,
Martin
Update:
I found out that if I check the flag "Proxy Authentication" in the connect details and provide both passwords, the deploy application parsing schema is set to the correct APEX_DEMO account. However, we are using Proxy Authentication in order to avoid having to know the application password.
Edited by: mdecker on Jan 28, 2013 4:48 PM

There is a write-up about connecting to APEX here: <a href ="http://www.oracle.com/technology/products/database/application_express/html/sql_dev_integration.html" >SQL Dev Oracle APEX Integration</a>
<p>You do need to have updated to Oracle APEX 3.0.1.
<p>Regards <br>
Sue

Similar Messages

  • Unable Update SQL Developer with Times Ten in-Memory DB Extension 1.2.1.1.0

    SQL Developer 1.2.1 Build MAIN 32.13 (Windows XP)
    We can't Update SQL Developer with Times Ten in-Memory DB Extension 1.2.1.1.0 :-((
    We did the same actions as described in tutorial
    http://www.oracle.com/technology/products/timesten/viewlets/tt703_sqldev_install_ext_viewlet_swf.html
    In addition to tutorial we have "Log In" window
    "To download Oracle Times Ten in-Memory Database Extension
    you must enter your Oracle Web Account user name and password"
    This window was not displayed in tutorial...
    We try to use three our OTN accounts and the result
    was the same - we was asked with "User name" and "Password"
    again, again, again and again,,, :-(
    Is it a bug or a feature?
    Mayby we didn't understand something or did something wrong?

    Hi Simon,
    I found cause of update failure! It was the HTTP proxy setting.
    I turned off "Use HTTP proxy server" checkbox in SQL Developer -> Tools -> Preferences -> Web Browser and Proxy.
    After this action SQL Developer was successfully updated with Times Ten Extension.
    Valery Yourinsky

  • APEX or SQL Developer?

    Hello,
    This is my first time posting here, I hope I have put it in the right section.
    I was told that in order to have SPARQL with Oracle, I should use either APEX or SQL Developer, and not to install Oracle Enterprise. (I have never worked with it, and am a bit lost).
    Is it possible to write SPARQL queries in this manner? Which is recommended for a beginner that only knows basics of SQL? Which has a more user-friendly interface?
    I would very much appreciate the help.
    Thank you :)
    Edited by: user13098869 on 14-Nov-2010 02:39

    Hi
    APEX - Oracle Application Express is a no-cost option of the Oracle database.
    SQL Developer is a tool that connects to the database to execute queries and PLSQL code
    I do not know how APEX or SQL Developer would work with SPARQL.
    One way to work with SPARQL with Oracle is using the Jena Adaptor. This is a set of tasks you would need to perform:
    1. Install Oracle Database Enterprise Edition
    2. Configure the database to use Semantic Technologies
    3. Install JDK
    4. Install Jena
    5. Install Jena Adaptor
    6. Review Jena Adaptor Demos that include SPARQL examples
    Jena Adaptor Tutorial:
    http://download.oracle.com/otndocs/tech/semantic_web/pdf/semtech11gr2_jenaadapt-tl.pdf
    From Test8.java on you can see some SPARQL examples
    This is the Oracle Semantic Technologies Web Page:
    http://www.oracle.com/technetwork/database/options/semantic-tech/index.html
    This is my scratch pad that I used when doing these tasks in case it helps:
    1. Install 11.2.0.2.0
    and
    2. Create database at time of installation.
    3. Create tablespace for Semantics:
    create tablespace RDF_TABLESPACE
    datafile '/.../rdf01.dbf' size 2000M
    autoextend on next 2000M maxsize 16000M;
    4. Setup Semantic Technologies:
    sqlplus / as sysdba
    @?/md/admin/catsem
    exec sem_apis.create_sem_network('RDF_TABLESPACE');
    5. Place files in working directory:
    JDK: jdk-6u22-linux-x64.bin
    Jena: jena-2.6.3.zip
    Jena Adaptor ./JenaAdaptor/jena_adaptor_for_release11.2.zip
    6. Unzip files:
    unzip jena-2.6.3.zip
    cd JenaAdaptor
    unzip jena_adaptor_for_release11.2.zip
    7. Install JDK:
    chmod u+x jdk-6u22-linux-x64.bin
    ./jdk-6u22-linux-x64.bin
    answer: yes
    8. You should have in your working directory:
    Wdir> ls -l
    total 70388
    drwxr-xr-x 8 ... Jena-2.6.2/
    drwxr-xr-x 7 ... JenaAdaptor/
    -rwxr--r-- 1 ... jdk-1_5_0_21-linux-i586.bin*
    drwxr-xr-x 9 ... jdk1.5.0_21/
    -rw-r--r-- 1 ... jena-2.6.2.zip
    9. Copy files:
    a. Copy ojdbc5.jar into <Jena_DIR>/lib (Linux) or <Jena_DIR>\lib (Windows). (ojdbc5.jar is in
    $ORACLE_HOME/jdbc/lib or %ORACLE_HOME%\jdbc\lib.)
    cp $ORACLE_HOME/jdbc/lib/ojdbc5.jar .../Jena-2.6.2/lib
    b. Copy sdordf.jar into <Jena_DIR>/lib (Linux) or <Jena_DIR>\lib (Windows). (sdordf.jar is in
    $ORACLE_HOME/md/jlib or %ORACLE_HOME%\md\jlib.)
    cp $ORACLE_HOME/md/jlib/sdordf.jar .../Jena-2.6.2/lib
    c. Copy sdordfclient.jar. It is in Work_dir/JenaAdpator/jar
    cp .../JenaAdaptor/jar/sdordfclient.jar .../user/Jena-2.6.2/lib
    10. Environmental variables:
    export JAVA_HOME=.../user/jdk1.5.0_21/bin
    export PATH=.../user/jdk1.5.0_21/bin:$PATH
    11. To compile the examples:
    copy the *.java examples to JENA_DIR/lib
    cp .../user/JenaAdaptor/examples/*.java .../user/Jena-2.6.2/lib
    -- To compile:
    cd .../user/Jena-2.6.2/lib
    javac -classpath ./:./jena-2.6.2.jar:./sdordfclient.jar:./ojdbc5.jar:slf4j-api-1.5.6.jar:log4j-
    1.2.13.jar:slf4j-log4j12-1.5.6.jar:arq-2.8.1.jar:xercesImpl-2.7.1.jar Test.java
    -- To run:
    cd .../user/JenaAdaptor/examples
    java -classpath ./:./jena-2.6.2.jar:./sdordfclient.jar:./ojdbc5.jar:slf4j-api-1.5.6.jar:log4j-
    1.2.13.jar:slf4j-log4j12-1.5.6.jar:arq-2.8.1.jar:xercesImpl-2.7.1.jar:iri-0.7.jar:icu4j-3.4.4.jar
    Test jdbc:oracle:thin:@caosspc46.ca.oracle.com:1521:orcl1102 rdfusr rdfusr Family
    You should see:
    | f | k |
    =========================================================
    | <http://example.com/John> | <http://example.com/Mary> |
    Regards!
    Jorge

  • How to get all tables in oracle sql developer with MS SQLServer

    Hi All,
    I am using microsoft SQL server 2000. For displaying the tables and other stuff i am using oracle SQL developer tool. The problem is when i connect to sql developer with oracle database i can see all the tables in that database. But when i connect to MS SQL server database it is not showing all the tables in that database. I don't know why?.
    i tried doing the samething using another tool called Aqua Data Studio , there i can able to see all the tables in microsoft SQL server 2000.
    do you have any knowledge regarding this, why i am not getting all the tables in oracle sql developer when i connect to microsoft SQL server 2000.

    Same issue here. Haven't found the answer yet..

  • SQL developer with jre but no jdk

    Is there a way i can install sql developer with only jre installed in my windows system.
    Im trying to install to sql developer 64 bit and when i run the exe file it asks for java.exe file path.
    When i give it to the path to exe file in jre/bin it gives an error cannot find j2se sdk installed in jre directory.

    Normally SQLDeveloper requires a JDK and so will not accept a JRE.
    You can try to bypass this check by filling in the SetJavaHome property manually in the sqldeveloper.conf file usually located in
    SQLDEVELOPER_INSTALL_DIR/sqldeveloper/binby doing this you are not guaranteed to succeed, because some of the functions of SQLDeveloper specifically requires the JDK and so if you use these functions you will most probably incur in errors or unexpected behavior.
    The best thing to do IMHO is to install a proper JDK.
    If you do not have the right to do so you can also copy and already installed JDK from another machine and it usually works well enough.

  • SQL Developer with Mac Os X 1.3.9

    Greetings,
    I am running Oracle Database 10g Release 1 (10.1.0.3) on my Powerbook G4 1 GHz with 768 MB ram. After reading the requirements for SQL developer for OS X, I thought I would try to install it. Unfortunately there seems to be a conflict in the requirements for installing SQL developer.
    "Operating System
    Apple Mac OS X Version 10.3
    CPU Type and Speed
    Dual 1.25 GHz G4/G5 (1 GHz G4 minimum)
    Memory
    256 MB RAM
    Display
    "Thousands" of colors
    Hard Drive Space
    110 MB
    Java SDK
    Sun J2SE 1.5 release 1, available at ...
    " from http://download-uk.oracle.com/docs/html/B28240_02/install.htm#CIHDJBJG
    The J2SE 1.5 release is currently only available for OS X 10.4 and higher, so apparently you need this os version to run SQL developer. Is this correct? Is there a SQL Developer version that will run on OSX 10.3 that is running the J2SE 1.4.2 release?

    Sorry the subject heading should read:
    SQL Developer with Mac Os X 10.3.9

  • Integrating sql developer with Subversion

    Hi all,
    I have Oracle SQL Developer (3.1.07) installed on my local windows machine. Using an external tool Tortise SVN as our VCS. Has anyone been able to integrate SQL Developer with TortiseSVN? I have googled and haven't found any relevant docs to help me integrate both. Is this possible at all? We have a configured repository server. TortiseSVN is installed on my machine and is acting as a working directory.
    Kindly advice me.
    Thanks!

    Hi Nick,
    it seems that the latest version of SQL Developer is not yet certified to work with Subversion 1.7 and it has some serious problems with it.
    Indeed if you have already installed the latest version of TortoiseSVN on your pc, you will have quite a lot of issues in SQL Developer (for example while browsing a working copy on your disk) and weird errors not immediately related with the version control plugin. You may find more details by searching the forum (e.g. see 3.1EA1 File browser bug? ).
    The possible solutions are either:
    1) install a supported version of TortoiseSVN (1.6 should be fine) and you should be able to perform check-in and check-out from inside SQL Developer;
    2) disable the Subversion plugin shipped with SQL Developer and use exclusively TortoiseSVN to manage your working copy;
    Currently I am using option 2 and it works fine.
    Hope it helps,
    Paolo
    Edited by: PaoloM on 13-lug-2012 11.42

  • Strange behaviour when using connection pooling with proxy authentication

    All
    I have developed an ASP.NET 1.1 Web application that uses ODP.NET 9.2.0.4 accessing Oracle Database 8i (which is to be upgraded to 10g in the coming months). I have enabled connection pooling and implemented proxy authentication.
    I am observing a strange behaviour in the live environment. If two users (User 1 and User 2) are executing SQL statements at the same time (concurrent threads in IIS), the following is occurring:
    * User 1 opens a new connection, executes a SELECT statement, and closes this connection. The audit log, which uses the USER function, shows User 1 executed this statement.
    * User 2 opens the same connection (before it is released to the connection pool?), excutes an INSERT statement, and closes this connection. The audit log shows User 1, not User 2, executed this statement.
    Is this a known issue when using connection pooling with proxy authentication? I appreciate your help.
    Regards,
    Chris

    Hi Chris,
    I tried to reproduce your complaint, but was unable to. I didnt use auditting however, just a series of "select user from dual" with proxy authentication. You might want to see if you can put together a small complete testcase for this and open a sr with support.
    Cheers
    Greg

  • Sql Developer and Kerberos authentication

    Hallo,
    IHAC interested by implementing SQL Developer in his IT environment, but, for the moment, the authentication to the Databases is done via Kerberos. The latest version of SQL Developer allows OS Authentication, but it seems that Kerberos is still not an issue.
    Any comments/tips/ideas to that subject?
    Thank you in advance
    Eric

    SQL Developer 1.5 does not support Kerberos. This is a feature request to be addressed in a future release.
    Sue

  • Does SQL Developer support OS Authentication?  Will it?

    Does SQL Developer support OS Authentication connections? If not will it in the future?

    Given this has the SQL Developer been changed to remove the requirement of adding a password for an OS authenticated account? These users also have the ability to access the DB via applications and the fact that they don't have to enter a password right now is ideal. I really don't want to have to add a password for them. Will this be changed within SQL Developer?

  • Remote debugging with APEX and SQL Developer

    Hi,
    I have problems concerning breakpoints within my SQL Packages I want to debug.
    I want to force SQL-Developer to suspend execution of a function, so I can get forward step by step.
    The SQL-Developer do not stop executing at the breakpoints I set in the Package.
    The message I get is the following (on SQL-Developer side):
    Debugger accepted connection from remote process on port 4000.
    Processing 110 classes that have already been prepared...
    Finished processing prepared classes.
    Debugger disconnected from remote process.
    Seems to me, that the process runs into the debug-mode but leave without stopping at a given breakpoint??
    Do anybody have an idea how to solve it?
    We use Oracle 10.2.0.3.0, SQL Developer 1.5.1 and APEX 3.1.2.
    The Package-function I want to debug runs on another Oracle database as the APEX application.
    Thanks in advance
    Regards
    Norbert
    Edited by: Norbert2 on Apr 20, 2009 5:47 AM

    Hi Carsten,
    now I have done a further step. I can debug a remote PL/SQL-Package through APEX, but now I get an exception when the program execution jumps back to the APEX PL/SQL-Package.
    My APEX-Page-Process looks like this:
    BEGIN
      dbms_debug_jdwp.connect_tcp(host => 'IP-ADDRESS', port => '4201');
      APEX_TEST_PKG.remoteDebug;
      dbms_debug_jdwp.disconnect;
    END;The procedure APEX_TEST_PKG.remoteDebug looks like this (located on the APEX-DB):
    PROCEDURE startRemoteDebug
      AS 
        v_string    VARCHAR2(50)   := '';
      BEGIN
        [email protected](host => 'IP-ADDRESS', port => '4000',
                 option_flags => dbms_debug_jdwp.connect_defer_suspension);
        v_string := [email protected];
        DBMS_OUTPUT.PUT_LINE(v_string);
        [email protected];
      END remoteDebug; The procedure REMOTE_TEST_PKG.testFunc looks like this (located on the Remote-DB):
    FUNCTION testFunc RETURN VARCHAR2
      AS 
        v_string    VARCHAR2(50)   := '';
      BEGIN        
        v_string := 'Test';
      RETURN v_string;
    END testFunc; When I start the debug session without the option dbms_debug_jdwp.connect_defer_suspension, I get an exception Oracle.EXCEPTION_ORA_604.
    Starting the debug session with the above mentioned option, I am able to debug the remote function.
    But now I get an exception when the executor tries leaving the remote function going back to the invoking function. With the debugger I can step over the return-statment successfully and the debugger steps on the next line END testFunc;. On this line I get the exception above
    Exception breakpoint occurred at line -1 of PBREAK.pls.
    $Oracle.Builtin.EXCEPTION_USER:
    Exception breakpoint occurred at line -1 of PBREAK.pls.
    $Oracle.Builtin.EXCEPTION_USER: I tried another way where I get now exception and where I can step through my functions in APEX, descending to functions in the remote db and going back to APEX.
    For this case I put the debug-statements in remote function:
    FUNCTION testFunc RETURN VARCHAR2
      AS 
        v_string    VARCHAR2(50)   := '';
      BEGIN        
        dbms_debug_jdwp.connect_tcp(host => 'IP-ADDRESS', port => '4000');
        v_string := 'Test';
        dbms_debug_jdwp.disconnect;  
      RETURN v_string;
    END testFunc; But I have no idea why it doesn't work properly starting the remote debug session in the apex procedure.
    Regards
    Michael
    Edited by: user6044915 on 02.09.2009 04:08
    Edited by: user6044915 on 02.09.2009 04:21
    Edited by: user6044915 on 02.09.2009 04:28

  • Publish to APEX in SQL Developer

    Hello:
    I wrote a query in SQL Developer and I want to utilize the Publish to APEX feature.
    In SQL Developer, I right-click and select Publish to APEX.
    I select the workspace, enter an application, select a theme, and enter a page.
    I receive a message stating that it was successful.
    I then go to APEX and login in as myself into my workspace which is the same workspace I designated in SQL Developer for this publish.
    At the login, I enter my username and password.
    I go to Application Builder, select the new application that was published, click Run.
    I'm prompted for a login, so I enter my username and password and I receive Invalid Login Credentials.
    Does anyone know what is causing this issue? I am the developer. I am an administrator. I'm using the same logins I always do when working with APEX. I'm not sure why I'm receiving this message.
    Can someone help me?
    Thanks.

    I don't think Apex is set up to accept this, but as the previous post says once you have the username/password of the underlying Oracle schema you should be able to do this. My particular case was jDeveloper and offline database objects, but the principle is the same. If you have admin access to the database go in as sys and change the password of the underlying Oracle user.

  • Apex and SQL Developer

    A coworker that works in Oracle told me today that he heard that a future release of SQL Developer was going to be integrated with Apex.
    Is that correct? If so, does anyone know how the two products will be integrated?
    Thanks, Tony

    Hi Tony,
    I wouldn't think so, because SQL Developer is done with a completely different development language (Java) then APEX is (PL/SQL). I think it goes more into the other direction, you will see more APEX related features in SQL Developer. The current APEX reports and the deployment feature in SQL Developer are just the beginning.
    But what do I know, I'm not from Oracle...
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • Connect to APEX /w SQL Developer

    Hi everyone,
    i've just created a free apex schema on apex.oracle.com.
    Can i connect to this database with my local SQL Developer somehow?

    Jari's right. Also see the following for more information;
    Connect apex.oracle.com workspace schema using a developer tool
    Kofi

  • 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

  • WINDOWS MOBILE 5.0 SDHC card PATCH

    I own an iPAQ rx1900 pocket PC. It cannot read sd memory cards over 2GB. Neither can it read high capacity. are there any compatible software upgrades?

  • Is account lockout policy still best practice

    Windows Server 2008 r2 (will be moving to 2012 r2) since implementing account lockout policy two days ago, we've been bombarded by calls to unlock accounts. and after a few minutes, same users get their accounts locked again. my question, since we ar

  • Installing new adobe reader

    I have been on a couple of sites and tried to view some of thier videos. They tell me i need the newest adobe reader upgrade.  Tried the upgrade which as available at the viewing site. It told me to close all windows before installing? Eventually, I

  • Camera Raw taking forever to process images

    Hi, All of a sudden my ACR is taking forver to save out images as jpegs. I have run all the latest updates and nothing has changed in the way i process my images, nothing is wrong with my mac either please help!!!

  • How do I download/install software/plug-ins automatically

    When I was using Windows XP, I could download software/plug-ins and thet would install automayically. How do I do that with FireFox and Windows 7?