Samples don't work under Oracle 10g w JDeveloper 10g

I have downloaded and attempted to use 3 different samples, and not a single one of them works properly without modification. These were all developed a couple of years ago, probably tested under earlier versions, but do not work under the most current. Does Oracle have any plans to update these samples to work with the most current products, or would the company rather leave its customers frustrated?
For reference, I am running Oracle 10g (version 10.2.0.1.0) on a Windows 2000 workstation. I'm simply trying to set up a demo application, so I haven't put it on a more powerful server as of yet. I am using JDeveloper 10g (version 10.1.2.1.0 build 1913). The three samples which I have tried to use are:
Oracle Label Security - Illustrating Ols Function API
Oracle9i JDBC Sample OCI Connection Pooling and Middle-Tier Authentication Sample
Oracle Connection Cache Sample Application
The OLS sample does not even compile properly if not modified. It is necessary to add "jsp:useBean" declarations in order to get past the compiler errors. The documentation for this is also in error. The text describing the application indicates that Figure 3 will show the details for EMP_OPN (the same as for Figure 2), but the actual figure shows the deatils for EMP_RESCH. Thus the resulting discussion and the figures do not match. At least I could finally get this application to work.
The other two I have not yet figured out the proper drivers or calling sequence. The drivers that work for the first application do not work for the latter two, or the calling sequence are wrong. I get lots of connection errors, loader errors, and others. I am about ready to give up on using the samples, as so far they have wasted more of my time than they have helped.
All I want to achieve is a demo that shows a database that uses connection sharing or pooling (for performance reasons), does middle-tier authentication, allows the application set a user context and then make database queries, having OLS enforce the access control policy based on the user context (vs. the user used for the shared connections). If there is other sample code that demonstrates this that works under the configuration described above, I would most greatly appreciate knowing about it, or receiving such sample code via email.

Firstly, XE 10.2.0.1 isn't the same as 10gR2 10.2.0.1
It was released a bit later and had some fixes that were in later 10.2.0.x patchsets (and also had some different security settings). Maybe they should have gone with 10.2.1.1.
Second, the embedded PL/SQL gateway was okay for XE, but isn't supported for Apex on the Standard/Enterprise Edition until 11g. It doesn't mean it never works, but it does mean that you shouldn't rely on it.
That said, there are other issues with 10.2.0.1 so I'd recommend going for the latest patchset anyway.
Thirdly, if you get the XDB login dialog box, something has gone wrong. For the embedded PL/SQL gateway, XDB is acting as a virtual webserver. Generally what should happen is you connect to the webserver (XDB) and request a page (the APEX login page) and XDB should give it to you, no questions asked.
If it asks you to login then the XDB webserver is running but is trying to get authorisation before it gives you the page. [By the way, if it does prompt for a username/password, it is expecting a database username/password, not an apex one or an O/S one] I'd suspect something is wrong with the setup.
What happens if you ask for a simple image like
http://URAN:8080/i/bottom_left.gif

Similar Messages

  • [SOLVED] Keyboard-shortcuts "alt+." and "alt+d" don't work under X11

    Hi,
    I switched from gentoo to archlinux and everything is running fine except my following really annoying problem:
    The keycombinations "alt+." (insert the last parameter from the line before) and "alt+d" (delete the word under the cursor) don't work under X11 (in my xterm).
    They work before I start X with bash and zsh btw...
    My "/etc/X11/xorg.conf.d/20-keyboard.conf" looks like
    Section "InputClass"
            Identifier "keyboard"
            MatchIsKeyboard "yes"
            Option "XkbLayout" "de"
            Option "XkbModel" "pc105"
            Option "XkbVariant" "nodeadkeys"
            Option "XkbOptions" "terminate:ctrl_alt_bksp"
    EndSection
    It is really annoying without these keys working and I have no clue where to look. Can anyone give me a hint?
    Thanks
    Last edited by eistaucher (2015-06-03 06:39:22)

    flipflop wrote:
    Did you set "XTerm*metaSendsEscape: true" [0]?
    [0] https://wiki.archlinux.org/index.php/Xt … l_Variable
    Thank you @flipflop. This solved my problem!

  • What will you do if any SQL is not working.in oracle 10g...apps 11.5.10.2

    What will you do if any SQL is not working. in oracle 10g....apps 11.5.10.2

    928714 wrote:
    yes sir.If you help me in answering my questions i wll be very thankful to you sir.
    tnx,I haven't a clue.
    As you have been advised in many of your posts, go study the documentation for whichever specific topic you are interested in.
    For me to answer your questions, I would need to go get that documentation.
    Then I would need to read that documentation.
    Then I would need to write a forum post that interprets what I think I learned from that documentation.
    It is so very much faster if YOU go do that instead of posting to a forum and expecting others to do it. You will remember what you study for a lot longer time if you teach yourself.

  • Table_From_Block Build-in Package is not working in Oracle 10G

    Hi
    Table_From_Block Build-in Package is not working in Oracle 10G
    Kindly advice..

    user648759 wrote:
    Hi
    Table_From_Block Build-in Package is not working in Oracle 10G
    Kindly advice..Provide a little more information. Forms version OS version, more information about your problem and question.
    --and explain what on earth Table_From_Block* mean's--
    Tony
    PS: TABLE_FORM_BLOCK is a built-in for internal use, usually auto generated by forms. For a moment I didn't get what that meant, need more coffee.
    Edited by: Tony Garabedian on Aug 29, 2008 12:39 PM

  • Select * from tab is not working in oracle 10g

    select * from tab is not working in oracle 10g. But at the same time,
    select * from <<table>> is working.
    Please advise me.

    This works for me in 10.2.0.2
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> select * from tab;
    TNAME                          TABTYPE            CLUSTERID
    LOAN_DETAIL                    TABLE
    PLAN_TABLE                     TABLE
    ...

  • Does Informatica 7.1 work with Oracle 10g?

    Hi All,
    I have Oracle 10g (10.2.0.1.0) and I just installed Informatica 7.1. While creating a new repository in Informatica Repository Admin Console, I am getting error as:
    "Unable to create the repository content. Make sure that the database connection and the license keys are correct. Check the activity log for more details."
    I confirmed that the license keys are correct. The database connection is also good as I could connect using the same username/password in SQLPlus. The activity log says:
    WARNING : RS_39204 [Mon Mar 22 15:05:38 2010] : (5160|5392) Bad config file [Config\infrepo-es.cfg]. Has it been manually named and placed in the Config directory? The expected name is [Config\_Yrepository_0name_Z-es.cfg].
    ERROR : RS_39194 [Mon Mar 22 15:51:52 2010] : (5160|5568) Failure in running command-line request type[100401] [pmrepagent create -r "Info_Repo" -t "Oracle" -u infrep -c orcl -d "MS1252" -h sathe-3766a91ad -o 9999  -a Info_0Repo-es.lic -H "sathe-3766a91ad" -O 5001 -K 2082340862]. Error is [An error occurred while creating the repository.
    I did not change anything manually,as it says in the warning. I have no idea what the error says.
    My friend has Oracle 9i and he do not get any error like this. So does Informatica 7.1 works with Oracle 10g ?
    Please help.
    Yogini                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    I found that with Oracle 10g you have to grant all DBA privileges to the repository user. This is not needed in Oracle 9i. Thats why I was getting error.
    Now it works fine.
    Thanks!
    Yogini

  • Is Developer 2000 release 2.1 works under Oracle 9.2.05.

    Is Developer 2000 release 2.1 works under Oracle 9.2.0.5.
    If anyone can answer this will be real help.
    Thanks in advance.

    It may be available through Oracle Support depending on the platform you need. You will need a valid Support Contract and access to MyOracleSupport (http://support.oracle.com)
    Here is the info for Windows.
    Oracle Developer Server Release 2.1 for Microsoft Windows NT
    Part number: A63484-01
    Oracle Developer/2000 Release 2.1 for Windows NT and Windows 95
    Part number: A63486-01
    The following should be considered before attempt to request or use the above:
    1. This product was desupported long ago and is not entitled to any Technical or Development support.
    2. This product version was not Y2K compliant. As a result it likely will not install correctly as the installer is sensitive to the date.
    3. This product was never intended to work correctly on the current operating systems. So, even if you are able to get it installed, it likely will not work correctly.

  • Does Oracle Designer 10g work with Oracle 10g Express?

    Guys:
    Does anybody know if Oracle Designer works with Oracle 10g Express?
    Regards,
    Mike Gorman

    Designer will not work on express edition of the Oracle Database. You will need the Standard or the Enterprise Edition of the Database.

  • APEX 3.1.0.00.32 doesn't work with ORACLE 10g SE 10.2.0.1.0

    I have Oracle 10g Express Edition 10.2.0.1.0 under Windows XP SP2 on my Personal Computer. There is installed the too , which is working fine.
    Also I have Oracle 10g Standard Edition 10.2.0.1.0 (after installing Oracle 10g BI SE One) under Windows 2000 Adv. Server (On remote Server named URAN).
    I tried to install the APEX 3.1.0.00.32 on URAN Server.
    I made all points from the list in the Oracle Database Application Express Installation Guide Release 3.1 E10496-02 (the same steps on my Personal Computer where APEX 3.1.0.00.32 is working fine).
    But!!!
    When I’m starting APEX 3.1.0.00.32 (on the Server - http://URAN:8080/apex/apex_admin) then I get errror:
    Unauthorized
    after 3 time entering the correct user & password ( from URAN accounts list ) in XDB user window.
    QUESTION 1: Why version number of Database on my PC & on Server is same, but
    APEX 3.1.0.00.32 on my PC is working fine while its is not working on the Server?
    I found out in Internet the APEX 3.1.0.00.32 is working correctly on ORACLE SE from version 10.2.0.3. But ! I have Oracle 10g Express Edition VERSION ‘s 10.2.0.1.0 and the APEX 3.1.0.00.32 is working fine there. What ?! Oracle 10g XE 10.2.0.1.0 & Oracle 10g SE 10.2.0.1.0 have different the data dictionary?
    QUESTION 2: In Oracle® Database Application Express Installation Guide
    Release 3.1 E10496-02 , in section
    4.3 About Configuring the Embedded PL/SQL Gateway
    said
    Note:
    The Oracle XML DB HTTP Server with the embedded PL/SQL gateway is not supported prior to Oracle Database 11g.
    But! My Oracle 10g Express Edition has version is 10.2.0.1.0 (less than 11g) AND …
    And APEX 3.1.0.00.32 is working fine by using XML DB HTTP Server nevertheless!
    By starting - http://127.0.0.1:8080/apex/apex_admin
    SUMMARY: Could I launch APEX 3.1.0.00.32 on the Server ( after any magic pass )?
    OR I need upgrade my Oracle 10g Standard Edition 10.2.0.1.0 to version 10.2.0.3.0 (what very difficultly and idly for me)?

    Firstly, XE 10.2.0.1 isn't the same as 10gR2 10.2.0.1
    It was released a bit later and had some fixes that were in later 10.2.0.x patchsets (and also had some different security settings). Maybe they should have gone with 10.2.1.1.
    Second, the embedded PL/SQL gateway was okay for XE, but isn't supported for Apex on the Standard/Enterprise Edition until 11g. It doesn't mean it never works, but it does mean that you shouldn't rely on it.
    That said, there are other issues with 10.2.0.1 so I'd recommend going for the latest patchset anyway.
    Thirdly, if you get the XDB login dialog box, something has gone wrong. For the embedded PL/SQL gateway, XDB is acting as a virtual webserver. Generally what should happen is you connect to the webserver (XDB) and request a page (the APEX login page) and XDB should give it to you, no questions asked.
    If it asks you to login then the XDB webserver is running but is trying to get authorisation before it gives you the page. [By the way, if it does prompt for a username/password, it is expecting a database username/password, not an apex one or an O/S one] I'd suspect something is wrong with the setup.
    What happens if you ask for a simple image like
    http://URAN:8080/i/bottom_left.gif

  • APEX 3.1.0.00.32 doesn't work with ORACLE 10g SE 10.2.0.1.0 (altered)

    I have Oracle 10g Express Edition 10.2.0.1.0 under Windows XP SP2 on my Personal Computer. There is installed the APEX 3.1.0.00.32 too , which is working fine.
    Also I have Oracle 10g Standard Edition 10.2.0.1.0 (after installing Oracle 10g BI SE One) under Windows 2000 Adv. Server (On remote Server named URAN).
    I tried to install the APEX 3.1.0.00.32 on URAN Server.
    I made all points from the list in the Oracle Database Application Express Installation Guide Release 3.1 E10496-02 (the same steps on my Personal Computer where APEX 3.1.0.00.32 is working fine).
    But!!!
    When I’m starting APEX 3.1.0.00.32 (on the Server - http://URAN:8080/apex/apex_admin) then I get errror:
    Unauthorized
    after 3 time entering the correct user & password ( from URAN accounts list ) in XDB user window.
    QUESTION 1: Why version number of Database on my PC & on Server is same, but
    APEX 3.1.0.00.32 on my PC is working fine while its is not working on the Server?
    I found out in Internet the APEX 3.1.0.00.32 is working correctly on ORACLE SE from version 10.2.0.3. But ! I have Oracle 10g Express Edition VERSION ‘s 10.2.0.1.0 and the APEX 3.1.0.00.32 is working fine there. What ?! Oracle 10g XE 10.2.0.1.0 & Oracle 10g SE 10.2.0.1.0 have different the data dictionary?
    QUESTION 2: In Oracle® Database Application Express Installation Guide
    Release 3.1 E10496-02 , in section
    4.3 About Configuring the Embedded PL/SQL Gateway
    said
    Note:
    The Oracle XML DB HTTP Server with the embedded PL/SQL gateway is not supported prior to Oracle Database 11g.
    But! My Oracle 10g Express Edition has version is 10.2.0.1.0 (less than 11g) AND …
    And APEX 3.1.0.00.32 is working fine by using XML DB HTTP Server nevertheless!
    By starting - http://127.0.0.1:8080/apex/apex_admin
    SUMMARY: Could I launch APEX 3.1.0.00.32 on the Server ( after any magic pass )?
    OR I need upgrade my Oracle 10g Standard Edition 10.2.0.1.0 to version 10.2.0.3.0 (what very difficultly and idly for me)?

    Firstly, XE 10.2.0.1 isn't the same as 10gR2 10.2.0.1
    It was released a bit later and had some fixes that were in later 10.2.0.x patchsets (and also had some different security settings). Maybe they should have gone with 10.2.1.1.
    Second, the embedded PL/SQL gateway was okay for XE, but isn't supported for Apex on the Standard/Enterprise Edition until 11g. It doesn't mean it never works, but it does mean that you shouldn't rely on it.
    That said, there are other issues with 10.2.0.1 so I'd recommend going for the latest patchset anyway.
    Thirdly, if you get the XDB login dialog box, something has gone wrong. For the embedded PL/SQL gateway, XDB is acting as a virtual webserver. Generally what should happen is you connect to the webserver (XDB) and request a page (the APEX login page) and XDB should give it to you, no questions asked.
    If it asks you to login then the XDB webserver is running but is trying to get authorisation before it gives you the page. [By the way, if it does prompt for a username/password, it is expecting a database username/password, not an apex one or an O/S one] I'd suspect something is wrong with the setup.
    What happens if you ask for a simple image like
    http://URAN:8080/i/bottom_left.gif

  • Links to samples don't work

    The links the samples on the http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/files/9i_sqlj/sqlj9i.html page don't work!
    Could someone from Oracle fix them?
    Thanks

    These links have been restored.
    Regards, OTN

  • Declarative transaction not working  for oracle 10g as.

    Hi Friends,
    While migrating from sun app server to oracle 10g as, i have problem in declarative transactions.
    I created stateless and stateful beans with declarative transactions. Transactions were working fine till they were in sun app server environment, but they fail in oracle 10g as environment.
    I build the ear through sun IDE and deployed the ear on oracle 10g as. Things worked fine till transactions come onto picture.Declarative transaction get failed in case of oracle 10g as.
    Please if you have faced such problem or have any way to solve this problem, Pls revert back.
    rgds,
    m_khanduri

    sb92075 thank you for reply. Please see the command outputs.
    $ hostname
    LONDAN
    $ id
    uid=503(oaprod) gid=5002(dba) groups=5002(dba)
    $ uname -a
    Linux LONDAN 2.6.18-274.el5 #1 SMP Fri Jul 8 17:36:59 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
    $ ps -ef | grep -i pmon | grep -v grep
    oaprod    3810     1  0 May11 ?        00:02:24 ora_pmon_OID
    jgarry thank u also. please see the response.
    $ ls -rl $ORACLE_HOME/dbs
    total 2848
    -rw-rw---- 1 oaprod dba    3584 May  8 14:33 spfileOID.ora
    -rw-r----- 1 oaprod dba 2867200 Sep 10 10:17 snapcf_OID.f
    -rwSr----- 1 oaprod dba    1536 May  5 06:17 orapwOID
    -rw-rw---- 1 oaprod dba      24 May 11 17:24 lkOID
    -rw------- 1 oaprod dba    8385 May  5 05:18 init.ora
    -rw------- 1 oaprod dba   12920 May  5 05:18 initdw.ora
    -rw-rw---- 1 oaprod dba    1544 May 11 17:24 hc_OID.dat
    ok. previously I set TNS_ADMIN. Now I set TWO_TASK, while connecting now am getting different error "insufficient privilege". Please check following.
    $ export TWO_TASK=OID
    $sqlplus / as sysdba
    SQL*Plus: Release 10.1.0.5.0 - Production on Wed Sep 11 05:22:28 2013
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    ERROR:
    ORA-01031: insufficient privileges
    But, now while connecting with "sys", I don't need to supply "@OID" it's connecting directly with "sqlplus sys as sysdba" command.

  • Sqlplus is not working after oracle 10g client installatio on linux server

    Him
    jsut now i installed oracle 10.2.0.1 client version in one my linux server. after successfully installation sqlplus is not working . could you please chekc and let me know what is the problem? below are my .profile details.
    # Set up the shell variables:
    EDITOR=vi
    export EDITOR
    ### Set the umask
    umask 022
    ### Set ulimit
    #ulimit -u 16384
    #ulimit -n 65536
    ### Set Oracle Environment
    export ORACLE_BASE=/u01/app/oracle
    export ORACLE_HOME=/u01/app/oracle/product/10.2.0/client_1
    export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/ctx/lib
    export LIB_PATH=$ORACLE_HOME/lib
    export ORATAB=/etc/oratab
    export NLS_LANG=american_america.we8iso8859p1
    export THREADS_FLAG=native
    echo ' '
    echo 'Oracle 10G environment has been setup'
    echo 'Export the ORACLE_SID to target database before connecting'
    echo ' '

    841731 wrote:
    Him
    jsut now i installed oracle 10.2.0.1 client version in one my linux server. after successfully installation sqlplus is not working . could you please chekc and let me know what is the problem? below are my .profile details.
    # Set up the shell variables:
    EDITOR=vi
    export EDITOR
    ### Set the umask
    umask 022
    ### Set ulimit
    #ulimit -u 16384
    #ulimit -n 65536
    ### Set Oracle Environment
    export ORACLE_BASE=/u01/app/oracle
    export ORACLE_HOME=/u01/app/oracle/product/10.2.0/client_1
    export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/ctx/lib
    export LIB_PATH=$ORACLE_HOME/lib
    export ORATAB=/etc/oratab
    export NLS_LANG=american_america.we8iso8859p1
    export THREADS_FLAG=native
    echo ' '
    echo 'Oracle 10G environment has been setup'
    echo 'Export the ORACLE_SID to target database before connecting'
    echo ' '" sqlplus is not working" is not an actionable error message. Unfortunately, you didn't show us what happens when you try to execute sqlplus.
    Essentially, what you've done is the equivalent of 'here's a picture of my garage. Why won't my car start?'

  • Ctrl+Z fuctianlity is not working in oracle 10g Form

    Hi
    I am using oracle 10g form and using
    Edit_TextItem to invoke Text Editor
    When i using CTRL+Z to undo things in editor it is not working but it works when i used Form6i.
    Please help me to solve this issue. i need to this functinality to be work.
    BR,
    SPS

    This works for me in 10.2.0.2
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> select * from tab;
    TNAME                          TABTYPE            CLUSTERID
    LOAN_DETAIL                    TABLE
    PLAN_TABLE                     TABLE
    ...

  • Simple insert, delete and update not working after oracle 10g installation

    Hello,
    I made a new installation of Oracle 10g (10.2.0.1.0) and created a schema . Now i try to insert or update data using simple queries, but unfortunately nothing happens. I tried inserting or updating data even via sqlplus, but unfortunately the same result. Query takes infinite time to end, so i had to manually end it every time... No errors... No warnings... but takes long time... I have given all the required permissions to the schema but the same result. Can somebody help me figure out the problem?
    Tried creating a new table and the insert and delete are working fine... think the problem is with this table... Imported the rows of the table from another online database. I dont understand how this might be a problem.
    Edited by: user13333704 on Mar 15, 2011 1:26 AM

    However how do you generate awr reports and how to find the session wait?TO generate the AWR report
    sql> ?/rdbms/admin/awrrpt
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/autostat.htm#BABDHAGF
    The event column in v$session , in v$active_session_wait will show you the session wait event.What the session was actually waiting for.
    HTH
    Anand

Maybe you are looking for

  • My ipad mini can't locate me on maps..how do i fix it?

    my ipad mini can't locate me on maps..how do i fix it?

  • Checksum not generated

    Hi, We are using the apex_util.prepare_URL in one the APEX application pages to generate the page URL with the parameter: p_checksum_type => 'PUBLIC_BOOKMARK'. The checksum is not generated. Does anyone out there encountered a similar issue? Regards,

  • ActionListener not being heard

    Hi. I have a familiar "OK - Cancel" panel on a particular JPanel. I have added an actionListener to the OK and Cancel buttons so that when we click on them it takes the appropriate action. However, when I tab into the Ok or cancel button and press th

  • [SOLVED] Asus P8P67 Pro motherboard missing eth0

    Hey everyone I'm setting up my new box and haven't got very far, this has to be the first time Arch hasn't automatically loaded the network driver on one of my boxes. As the title suggests, I have an Asus P8P67 Pro (Sandybridge) which has some intel

  • Computer won't recognize iPad 1

    Alright, so I plug my iPad 1 in to put some music on and neither the iPad nor the computer recognize it. I had recently updated my compputer so I restarted it. That when it booted up it still didn't work so I thought it was the cord. I tried 4 differ