Question about EMCTL status dbconsole

Good morning,
I am using Windows XP SP2 and 11gR1. I have an installation with 2 homes, db_1 is home to DBCASID and OCP11GSID, db_2 is home to ORCLSID. All are the same Oracle version, namely, 11gR1.
I have set the EM services to start manually. I initially started the service for ORCLSID then stopped it and, started the service for DBCASID which started uneventfully. The services were started and stopped using EMCTL by setting the ORACLE_SID to the proper values, in addition, since those instances are in different homes, I switched the PATH as necessary to point to their respective homes.
When I issue the commands:
E:\Oracle\app\Private\product\11.1.0\db_1\BIN>set oracle_sid=dbcasid
E:\Oracle\app\Private\product\11.1.0\db_1\BIN>emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.1.0.6.0
Copyright (c) 1996, 2007 Oracle Corporation.  All rights reserved.
https://OrahostB.john.local:5500/em/console/aboutApplication
Oracle Enterprise Manager 11g is not running.It reports the service as not running. Windows shows the service is running and in addition to that I have successfully started EM for the instance and used it to browse the state of various elements that make up the database.
As I type this, the address in IE that I am currently looking at is:
https://orahostb.john.local:5500/em/console/database/storage/tablespace?target=dbca&type=oracle_database&pageName=/database/storage/tablespace/showSegments&cancelURL=/em/console/database/storage/tablespace%3Foname%3DEXAMPLE%26event%3Dview%26otype%3DTABLESPACE%26target%3Ddbca%26type%3Doracle_database&oname=EXAMPLE&otype=TABLESPACE&processId2=1284272607223which proves the service is running and fully functional.
The question is: Why is emctl reporting the service as not running when it is most definitely running ? Any ideas ?
Thank you for your help,
John.

Dear 440bx - 11gR2,
I had the same problem and the enterprise manager is running. The agent is not running on your situation but the enterprise manager itself is running.
When you type emctl start dbconsole it keeps printing dots (.) and saying the dbconsole can not be started. Actually the dbconsole is started but the agent is not.
Please type;
emctl status dbconsoleHere is my output (enterprise manager is running);
vals1:/home/oracle#emctl status dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
Copyright (c) 1996, 2007 Oracle Corporation.  All rights reserved.
https://10.6.104.171:1158/em/console/aboutApplication
Oracle Enterprise Manager 10g is not running.
Logs are generated in directory /oracle/product/10.2.0/db_1/vals1_optprod/sysman/logThe error messages are;
vals1:/oracle/product/10.2.0/db_1/vals1_optprod/sysman/log#tail emagent.trc
2010-09-12 23:18:12 Thread-10 ERROR vpxoci: Error setting timeout for queue reader
2010-09-12 23:18:12 Thread-10 ERROR recvlets.aq: unable to build queue agent for oracle_database optprod
2010-09-12 23:18:25 Thread-53460 ERROR ssl: nzos_Handshake failed, ret=29024
2010-09-12 23:18:25 Thread-53460 ERROR http: 12: Unable to initialize ssl connection with server, aborting connection attempt
2010-09-12 23:18:25 Thread-53460 ERROR pingManager: nmepm_pingReposURL: Cannot connect to https://10.6.104.171:1158/em/upload/: retStatus=-1
2010-09-12 23:18:25 Thread-53460 ERROR ssl: nzos_Handshake failed, ret=29024
2010-09-12 23:18:25 Thread-53460 ERROR http: 12: Unable to initialize ssl connection with server, aborting connection attempt
2010-09-12 23:18:25 Thread-53460 ERROR pingManager: nmepm_pingReposURL: Cannot connect to https://10.6.104.171:1158/em/upload/: retStatus=-1
2010-09-12 23:18:35 Thread-10 ERROR vpxoci: Error setting timeout for queue reader
2010-09-12 23:18:35 Thread-10 ERROR recvlets.aq: unable to build queue agent for oracle_database optprodI have never seen such error and i believe that your error is something like that. Please see metalink for further information or create an SR call.
vals1:/oracle/product/10.2.0/db_1/vals1_optprod/sysman/log#tail emdctl.trc
2010-09-12 23:15:26 Thread-1 ERROR ssl: nzos_Handshake failed, ret=29024
2010-09-12 23:15:26 Thread-1 ERROR http: 6: Unable to initialize ssl connection with server, aborting connection attempt
2010-09-12 23:16:59 Thread-1 ERROR ssl: nzos_Handshake failed, ret=29024
2010-09-12 23:16:59 Thread-1 ERROR http: 6: Unable to initialize ssl connection with server, aborting connection attempt
2010-09-12 23:17:55 Thread-1 ERROR ssl: nzos_Handshake failed, ret=29024
2010-09-12 23:17:55 Thread-1 ERROR http: 6: Unable to initialize ssl connection with server, aborting connection attempt
2010-09-12 23:18:31 Thread-1 ERROR ssl: nzos_Handshake failed, ret=29024
2010-09-12 23:18:31 Thread-1 ERROR http: 6: Unable to initialize ssl connection with server, aborting connection attempt
2010-09-12 23:20:03 Thread-1 ERROR ssl: nzos_Handshake failed, ret=29024
2010-09-12 23:20:03 Thread-1 ERROR http: 6: Unable to initialize ssl connection with server, aborting connection attemptPlease read the following thread because it may help you out;
OEM "emagent.trc" showing errors for ssl
If you need some more information please see and post the trace files.
Regards.
Ogan

Similar Messages

  • Emctl status dbconsole does not reflect correct status of dbcontrol

    hi gurus
    Emctl status dbconsole command shows that the Oracle Enterprise Manager 10g is not running. But in fact that I can access the Enterprise Manager and it is running.It seems that the emctl status dbconsole command show incorrect status about the dbconsole.
    Why and how to solve this problem?
    Thank you very much!
    Edited by: KevinMao on Apr 26, 2010 6:14 AM

    It might work if you had an operating system. However, you do not have one.
    Or at least you are very reluctant to tell us which one you use.
    And troubleshooting techniques differ based on OS.

  • Emctl status dbconsole

    hi
    i have a problem that i m not able to start dbconsole process. when i type
    emctl status dbconsole
    it is diving me the message
    oracle enter prise manager is not running
    logs are generated in directory 'c:\app\hpuser\..............\sysman\log
    I did try to check that log but i m not able to solve this.
    i have installed 11g on my window vista os
    thanks if anybody can help

    "Not running" means what to you?
    C:\Documents and Settings\Steve>emctl status dbconsole
    Environment variable ORACLE_SID not defined. Please define it.
    C:\Documents and Settings\Steve>set ORACLE_SID=db10
    C:\Documents and Settings\Steve>emctl status dbconsole
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
    Copyright (c) 1996, 2005 Oracle Corporation.  All rights reserved.
    http://T42:1158/em/console/aboutApplication
    Oracle Enterprise Manager 10g is not running.
    Logs are generated in directory C:\oracle\product\10.2.0\db_1/T42_db10/sysman/log
    C:\Documents and Settings\Steve>net start OracleDBConsoledb10
    The OracleDBConsoledb10 service is starting.................
    The OracleDBConsoledb10 service was started successfully.
    C:\Documents and Settings\Steve>emctl status dbconsole
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
    Copyright (c) 1996, 2005 Oracle Corporation.  All rights reserved.
    http://T42:1158/em/console/aboutApplication
    EM Daemon is not running.
    Logs are generated in directory C:\oracle\product\10.2.0\db_1/T42_db10/sysman/log
    C:\Documents and Settings\Steve>emctl start dbconsole
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
    Copyright (c) 1996, 2005 Oracle Corporation.  All rights reserved.
    http://T42:1158/em/console/aboutApplication
    Agent Version     : 10.1.0.4.1
    OMS Version       : 10.1.0.4.0
    Protocol Version  : 10.1.0.2.0
    Agent Home        : C:\oracle\product\10.2.0\db_1\T42_db10
    Agent binaries    : C:\oracle\product\10.2.0\db_1
    Agent Process ID  : 3336
    Agent Process ID  : 3336
    Agent is already started. Will restart the agent
    This will stop the Oracle Enterprise Manager 10g Database Control process. Continue [y/n] :y
    The OracleDBConsoledb10 service is stopping........
    The OracleDBConsoledb10 service was stopped successfully.
    C:\Documents and Settings\Steve>emctl status dbconsole
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
    Copyright (c) 1996, 2005 Oracle Corporation.  All rights reserved.
    http://T42:1158/em/console/aboutApplication
    Oracle Enterprise Manager 10g is not running.
    C:\Documents and Settings\Steve>emctl start dbconsole
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
    Copyright (c) 1996, 2005 Oracle Corporation.  All rights reserved.
    http://T42:1158/em/console/aboutApplication
    Starting Oracle Enterprise Manager 10g Database Control ...The OracleDBConsoledb10 service is starting..
    The OracleDBConsoledb10 service was started successfully.Message was edited by:
    stevencallan

  • Emctl status dbconsole error

    Hi all, When i run this command i.e. emctl status dbconsole
    i get this error message.
    Environment variable ORACLE_UNQNAME not defined. Please set ORACLE_UNQNAME to database unique name.
    I'm using oracle 11g on windows. Please help me.
    sry, im a beginner. can you please right my specific solution in reply's.
    I cannot understand linux commands, its making me confuse.

    857367 wrote:
    yes i know how to set environmental variables in windows either from registry or from control panel.OK, so what part of
    Try this:
    1.Update the /etc/hosts file with the host details:
    <IP> <hostname.domain> <alias>
    Now check the status with 'emctl status dbconsole'
    2.If the above doesnt help:
    set the ORACLE_UNQNAME env PARAMETER and then retry the operation:
    set ORACLE_UNQNAME=<value>
    Now check the status with 'emctl status dbconsole'
    Hope this helps:
    VRis confusing you?

  • Question about safari status bar

    Hi All,
    I have a web application , mainpage contained an iframe . the Page in iframe will set data to status bar . And mainpage will scan status bar by a timer to get the update info . All the flow was controlled by JavaScript .
    It works fine with IE , but for Safari , i saw the status bar was updated and the data is correct , but window.status alway be empty .
    Did anyone know how to get the data ? if Safari can show the correct data in status bar , it should mean the browser contains the data , right?

    BTW , the version number of my Safari is 5.0.1

  • Question about "activated" status

    Hi again!
    Got another question regarding Applescript studio app. Most apps I notice if you close their window and the app allows itself to stay open, by double clicking the icon or clicking the dock icon it would reopen that window. But I notice that if you would close the window and "activate" the app by Expose or -tab that some apps will reopen the window and some won't...make sense? So I guess my question is how would I make the app reopen its main window that was closed if you would click it's icon, but not if it was reactived in Expose???
    Thanks,
    Reg

    From some quick experiments it looks to me like "will become active" and "activated" are going to get called any time your app is activated regardless of whether it's due to command-tab or clicking the dock icon. So if you're only wanting to open an new window on a dock click I don't know how you could really use either of those and be able to tell what caused your app to be actived.
    On the other hand it appears that "should open untitled" may do what you're wanting. It appears that "should open untitled" gets called if your app does not have any open windows and it gets activated by a click on the dock icon. It does not seem to get called if you switch to your app using command-tab. Nor does it get called following a dock icon click if you already have a window open.
    It also does not get called if your app does have a window and you switch to it by clicking the window in Expose. Is it even possible to switch to an app through Expose if the app does not have any windows to click on?
    I'm not sure what other circumstances could cause "should open untitled" to be called so you may have to experiment with it some more.
    Steve

  • Question about POWERPLAY status on Satellite A100-192

    I have an Satellite A100-192 notebook with Mobility Radeon X1600 card.
    In POWERPLAY Status it always shown as the adapter is "plugged in", also when I use the laptop with battery and the current profile is "Optimal Performance".
    So what is the problem?

    Hi
    I see on the picture that the Power Play in not enabled.
    In my opinion you can use either the Toshiba power saver or the ATI power play options.
    The same happens with Windows own power options. This options are disabled and dont work if the Toshiba power saver is installed on the OS.
    Ok, this is only my opinion and if you want you can test it.

  • Emctl start dbconsole [java.lang.Exception: Exception in sending Request ::

    I configured dbconsole in 10g .I face below error while connecting to through browser
    java.lang.Exception: Exception in sending Request :: null
    when given below command
    C:\Windows\System32>emctl status dbconsole
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
    Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    http://Ganesh-Dell:1158/em/console/aboutApplication
    EM Daemon is not running.
    Logs are generated in directory E:\oracle\product\10.2.0\db_1/Ganesh-Dell_ORCL/sysman/log
    log file
    -------------- [OracleDBConsoleORCL] ------------
    EMDROOT=E:\oracle\product\10.2.0\db_1
    ORACLE_HOME=E:\oracle\product\10.2.0\db_1
    EMDSTATE=E:\oracle\product\10.2.0\db_1\Ganesh-Dell_ORCL
    CONSOLE_CFG=dbconsole
    TRACE_LEVEL=16
    TIMEOUT=15
    05/18/13 00:36:00 Start pending...
    05/18/13 00:36:00 Verifying dbconsole is not started already. Command line "E:\oracle\product\10.2.0\db_1\bin\emctl.bat" istatus dbconsole
    05/18/13 00:36:05 dbconsole launch commandline is "E:\oracle\product\10.2.0\db_1\bin\emctl.bat" istart dbconsole
    05/18/13 00:36:05 Tracking process launch...
    05/18/13 00:36:37 Received exitCode 3 from emctl istatus
    05/18/13 00:36:37 dbconsole started
    05/18/13 00:36:40 Recieved ServCtrlHdlr command, 4
    05/18/13 00:41:28 Recieved ServCtrlHdlr command, 4
    05/18/13 00:41:28 Recieved ServCtrlHdlr command, 1
    05/18/13 00:41:28 Stopping dbconsole
    05/18/13 00:41:28 Launching stop EMD process...
    05/18/13 00:41:28 Waiting for stop EMD process to exit. numRetries=74
    05/18/13 00:41:32 Stop process has exited with exitCode: 0
    05/18/13 00:41:32 Waiting for emwd process to exit. numRetries=74
    05/18/13 00:41:32 Watchdog process exited with exit code 55
    05/18/13 00:41:32 Signal Shutdown event.
    05/18/13 00:41:32 Shutdown thread exited.
    05/18/13 00:41:32 ServiceMain wake up by ShutdownProc, emwd has exited. ServiceMain exits
    Please suggest.

    Moderator Action:
    Post has been moved from the Oracle Linux forum,
    to the Enterprise Manager forum, for better topic alignment.
    You have no evidence that this is a Linux question (nor specifically an ORACLE LINUX question), particularly when you show using MS Windows command syntax.

  • Emctl status

    Hi all,
    I'm a newb to Oracle 11. Just recently upgraded from Oracle 9 to 11. Before with 9i, I used to run the Java standalone tool dba studio to administer my database. With the new 11g database, I have successfully been using the web-based OEM Database Control. I access that page at https://server.mycompany.com:1158/em.
    The only issue I have is when I run - $ORACLE_HOME/bin/emctl status dbconsole - I get the following message:
    [oracle@myserver bin]$ ./emctl status dbconsole
    OC4J Configuration issue. /u01/app/oracle/product/11.1.0/oc4j/j2ee/OC4J_DBConsole_myserver.mycompany.com_MYDB not found.
    Any ideas?
    Thank you very much for any help.

    OK looks like I was able to fix with a couple of properly placed symlinks:
    1. In $ORACLE_HOME/oc4j/j2ee:
    ls -ltr
    lrwxrwxrwx 1 oracle oinstall 29 Dec 22 10:52 OC4J_DBConsole_myserver.mycompany.com_MYDB -> OC4J_DBConsole_myserver_MYDB
    and
    2. In $ORACLE_HOME:
    lrwxrwxrwx 1 oracle oinstall 14 Dec 22 10:55 myserver.mycompany.com_MYDB -> myserver_MYDB
    Now:
    [oracle@myserver 11.1.0]$ emctl status dbconsole
    Oracle Enterprise Manager 11g Database Control Release 11.1.0.6.0
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    https://myserver:1158/em/console/aboutApplication
    Oracle Enterprise Manager 11g is running.
    Logs are generated in directory /u01/app/oracle/product/11.1.0/myserver.mycompany.com_MYDB/sysman/log
    I'm just not sure how it was working in the first place????

  • Some questions about building  a plug in

    Hello,
    1.I'm trying to build a plug in ( for EM12c release 2 ) for my standalone java application - which exposes mbeans whom i want to collect some metrics with.
    It's been a while since i started to build it - and I asked quite a lot of quesions about it - because the documnets supplied with the EDK and
    the books ( ProgrammersGuide, ProgrammersReferece and the README file ) are not very clear to me ( I'm a newbie with EM in general .. )
    So far some of the questions got answered and were very halpfull with this long process. BUT, there are some questions that nobody answered yet.
    I'm quite "stuck" with it. I'm talking about the questions in : Re: A question about updating metadata files in plug in
    I have a deadline for this plug in ( which is very close ..) so this the reason I post this new message.
    I will appriciate any help about those questions .
    2. Regarding the above, ( hoping to have an answered soon ..) I'm trying another way to buils this plug in:
    In the README file there is this section( 3.6 : using MPCUI ) . I read the programmersReference ( chapter 8 ) and followed the instructions both in the README file and the ProgrammersReference .
    For a begining, I just wanted to modify a small thing in the example supplied ( Demo Host System ) just to get started with something .
    So i modify the file which contains the label ' Select member ... ' ( i don't remember the name of the file since the project is in my office , and I can't copy/paste ..- I think the the file icontians the name ' ConfirmationTarget .xml - it's one of the pages seen while adding a target ) .
    I i changed it , i build the project ( using FlexBuilder) but did not use ANT as it's says in the README - the eclipse IDE build this file automatically
    ( HostSystem.swf  in bin-debug dir as it says in the README ) . I copied this file to stage_dir/oms/metadata/mpcui .
    i build a new plug in ( i incremented the version of it ) - no errors, everty thing was fine .I also copied this file to the oms server ( it wasn't there before )
    and than run the commad ' emctl register oms ...' as it says in section 3.6 - and o got 'Success' eventually .
    Now, when i opened the EM console , hoping to see tge change i made ( again , it's just a change of the title of the step while adding the target , and adding another menuitem to the 3 item that were alreay there ( CPU, FS, etc ) .
    I believe wad i did is right- i mean changing in the right file and place ( there is no title like like this in any oter source file in the whole project )
    but still, I didn't see any change! it seems execatly as it was befoer the change ..
    Any idea?
    Thanks.

    Regarding your question #2. Please read my response here carefully as it covers a number of different issues.
    1. Ant is not required to build the SWF file in your plug-in. It is an OPTION. Section 8.27 describes the different development options using either Ant or FlexBuilder.
    2. You do NOT need to ever copy a SWF file to any location under the OMS runtime. You need to include it in the stage area and then either build an OPAR or use emctl to incrementally update the deployed plug-in. It has to either be deployed as part of the plug-in deployment or updated incrementally using emctl register oms metadata. Section 8.27.2.6 describes the specific steps to do this incremental update.
    Steps to update the SWF associated with demo_hostsample. These are covered in the README and in chapter 8.
    1. deploy the demo_hostsample plug-in as described in the README
    2. create an instance of the Host Sample target type through manually discovery (Add Targets->Add Non-Host Target Specifying Properties)
    3. using the demo_hostsample.zip project in Flex Builder, modify some part of the code, for example, modify the line containing label="Current Status" to label="My New Label"
    4. rebuild the SWF, to be sure you can to a Clean build of the demo_hostsample project
    5. ensure there is an updated copy of the HostSample.swf under demo_hostsample\mpcui\bin-debug (NOT bin-release, unless you Exported A Release Build)
    6. copy that updated HostSample.swf file to the location on the OMS machine where you unzipped and built the OPAR for the demo_hostsample plug-in
    7. cd to the stage/oms/metadata/mpcui directory and replace the current HostSample.swf with the one you just built (BE SURE ITS THE UPDATED FILE)
    8. execute the command "emctl register oms metadata -sysman_pwd sysman -pluginId oracle.sysman.ohs -service mpcui -file demo_hostsample_uimd_swf.xml (BE SURE TO USE THE CORRECT sysman_pwd)
    At this point you should be able to go to the homepage for the Host Sample target you created and see the changes.

  • Question about Kurts comments discussing the seperation of AIA & CDP - Test Lab Guide: Deploying an AD CS Two-Tier PKI Hierarchy - Kurt L Hudson MSFT

    Question about the sentence in bold. What is the meaning behind this comment?
    How would you separate the role of the AIA and CDP from a CA subordinate server? I can see where I add a CES and CEP server which has those as well, but I don't completely understand his comment. Because in this second step, (http://technet.microsoft.com/en-us/library/tlg-key-based-renewal.aspx)
    he shows how to implement CES and CEP.
    This is from the guide located at: http://technet.microsoft.com/library/hh831348.aspx
    Step 3: Configure APP1 to distribute certificates and CRLs
    In the extensions of the root CA, it was stated that the CRL from the root CA would be available via http://www.contoso.com/pki. Currently, there is not a PKI virtual directory on APP1, so one must be created.
    In a production environment, you would typically separate the issuing CA role from the role of hosting the AIA and CDP.
    However, this lab combines both in order to reduce the number of resources needed to complete the lab.
    Thanks,
    James

    My concern is, they have a 2-3k base of xp systems, over this year they are migrating them to Windows 7. During this time they will also be upgrading hardware for the existing windows 7 machines. The turnover of certificates are going to be high, which
    from what I've read here, it worries me.
    http://blogs.technet.com/b/askds/archive/2009/06/24/implementing-an-ocsp-responder-part-i-introducing-ocsp.aspx
    The application then can go to those locations to download the CRL. There are, however, some potential issues with this scenario. CRLs over time can get rather large
    depending on the number of certificates issued and revoked. If CRLs grow to a large size, and many clients have to download CRLs, this can have a negative impact on network performance. More importantly, by
    default Windows clients will timeout after 15 seconds while trying to download a CRL. Additionally,
    CRLs have information about every currently valid certificate that has been revoked, which is an excessive amount of data given the fact that an application may only need the revocation status for a few certificates. So,
    aside from downloading the CRL, the application or the OS has to parse the CRL and find a match for the serial number of the certificate that has been revoked.
    With the above limitations, which mostly revolve around scalability, it is clear that there are some drawbacks to using CRLs. Hence, the introduction of Online Certificate
    Status Protocol (OCSP). OCSP reduces the overhead associated with CRLs. There are server/client components to OCSP: The OCSP responder, which is the server component, and the OCSP Client. The OCSP Responder accepts status
    requests from OCSP Clients. When the OCSP Responder receives the request from the client it then needs to determine the status of the certificate using the serial number presented by the client. First the OCSP Responder determines if it has any cached responses
    for the same request. If it does, it can then send that response to the client. If there is no cached response, the OCSP Responder then checks to see if it has the CRL issued by the CA cached locally on the OCSP. If it does, it can check the revocation status
    locally, and send a response to the client stating whether the certificate is valid or revoked. The response is signed by the OCSP Signing Certificate that is selected during installation. If the OCSP does not have the CRL cached locally, the OCSP Responder
    can retrieve the CRL from the CDP locations listed in the certificate. The OCSP Responder then can parse the CRL to determine the revocation status, and send the appropriate response to the client.

  • Few questions about apex + epg and cookie blocked by IE6

    Hi,
    I would like to ask a few questions about apex and epg.
    I have already installed and configured apex 3.2 on oracle 10g (on my localhost - computer name 'chen_rong', ip address -192.168.88.175 ), and enable anonymous access xdb http server.
    now,
    1. I can access 'http://chen_rong' , 'http://localhost' , 'http://192.168.88.175' without input username / password for realm 'XDB' in IE6;
    2. I can access 'http://localhost/apex/apex_admin' , 'http://192.168.88.175/apex/apex_admin' , and I can be redirected into apex administation page after input admin/<my apex admin password> for realm 'APEX' in IE6;
    3. I can access 'http://chen_rong/apex/apex_admin' in IE6, but after input admin/password , I can not be redirected into administation page, because the cookie was blocked by IE6.
    then, the first question is :
    Q1: What is the difference among 'http://chen_rong' , 'http://localhost' , 'http://192.168.88.175' ? I have already include site 'chen_rong' into my trusted stes! why the cookie was blocked by IE6. I have already tried firefox and google browser, both of them were ok for 'chen_rong', no cookie blocked from site 'chen_rong'!
    and,
    1. I have tried to use the script in attachment to test http authentication and also want to catch the cookie by utl_http .
    2. please review the script for me.
    3. I did:
    SQL> exec show_url('http://localhost/apex/apex_admin/','ADMIN','Passw0rd');
    HTTP response status code: 401
    HTTP response reason phrase: Unauthorized
    Please supplied the required Basic authentication username/password for realm XDB for the Web page.
    Web page http://localhost/apex/apex_admin/ is protected.
    MS-Author-Via: DAV
    DAV: 1,2,<http://www.oracle.com/xdb/webdav/props>
    Server: Oracle XML DB/Oracle Database
    WWW-Authenticate: Basic realm="XDB"
    Date: Tue, 04 Aug 2009 02:25:15 GMT
    Content-Type: text/html; charset=GBK
    Content-Length: 147
    ======================================
    PL/SQL procedure successfully completed
    4. I also did :
    SQL> exec show_url('http://localhost/apex/apex_admin/','ANONYMOUS','ANONYMOUS');
    HTTP response status code: 500
    HTTP response reason phrase: Internal Server Error
    Check if the Web site is up.
    PL/SQL procedure successfully completed
    SQL> exec show_url('http://localhost/apex/apex_admin/','SYSTEM','apexsite');
    HTTP response status code: 401
    HTTP response reason phrase: Unauthorized
    Please supplied the required Basic authentication username/password for realm APEX for the Web page.
    Web page http://localhost/apex/apex_admin/ is protected.
    Content-Type: text/html
    Content-Length: 147
    WWW-Authenticate: Basic realm="APEX"
    ======================================
    PL/SQL procedure successfully completed
    my second questions is :
    Q2: After I entered into realm 'XDB', I still need went into realm'APEX'. how could I change the script show_url to accomplish these two tasks and successfully get the cookie from site.
    the show_url script is as following:
    CREATE OR REPLACE PROCEDURE show_url
    (url IN VARCHAR2,
    username IN VARCHAR2 DEFAULT NULL,
    password IN VARCHAR2 DEFAULT NULL)
    AS
    req UTL_HTTP.REQ;
    resp UTL_HTTP.RESP;
    name VARCHAR2(256);
    value VARCHAR2(1024);
    data VARCHAR2(255);
    my_scheme VARCHAR2(256);
    my_realm VARCHAR2(256);
    my_proxy BOOLEAN;
    cookies UTL_HTTP.COOKIE_TABLE;
    secure VARCHAR2(1);
    BEGIN
    -- When going through a firewall, pass requests through this host.
    -- Specify sites inside the firewall that don't need the proxy host.
    -- UTL_HTTP.SET_PROXY('proxy.example.com', 'corp.example.com');
    -- Ask UTL_HTTP not to raise an exception for 4xx and 5xx status codes,
    -- rather than just returning the text of the error page.
    UTL_HTTP.SET_RESPONSE_ERROR_CHECK(FALSE);
    -- Begin retrieving this Web page.
    req := UTL_HTTP.BEGIN_REQUEST(url);
    -- Identify yourself.
    -- Some sites serve special pages for particular browsers.
    UTL_HTTP.SET_HEADER(req, 'User-Agent', 'Mozilla/4.0');
    -- Specify user ID and password for pages that require them.
    IF (username IS NOT NULL) THEN
    UTL_HTTP.SET_AUTHENTICATION(req, username, password, 'Basic', false);
    END IF;
    -- Start receiving the HTML text.
    resp := UTL_HTTP.GET_RESPONSE(req);
    -- Show status codes and reason phrase of response.
    DBMS_OUTPUT.PUT_LINE('HTTP response status code: ' || resp.status_code);
    DBMS_OUTPUT.PUT_LINE
    ('HTTP response reason phrase: ' || resp.reason_phrase);
    -- Look for client-side error and report it.
    IF (resp.status_code >= 400) AND (resp.status_code <= 499) THEN
    -- Detect whether page is password protected
    -- and you didn't supply the right authorization.
    IF (resp.status_code = UTL_HTTP.HTTP_UNAUTHORIZED) THEN
    UTL_HTTP.GET_AUTHENTICATION(resp, my_scheme, my_realm, my_proxy);
    IF (my_proxy) THEN
    DBMS_OUTPUT.PUT_LINE('Web proxy server is protected.');
    DBMS_OUTPUT.PUT('Please supply the required ' || my_scheme ||
    ' authentication username/password for realm ' || my_realm ||
    ' for the proxy server.');
    ELSE
    DBMS_OUTPUT.PUT_LINE('Please supplied the required ' || my_scheme ||
    ' authentication username/password for realm ' || my_realm ||
    ' for the Web page.');
    DBMS_OUTPUT.PUT_LINE('Web page ' || url || ' is protected.');
    END IF;
    ELSE
    DBMS_OUTPUT.PUT_LINE('Check the URL.');
    END IF;
    -- UTL_HTTP.END_RESPONSE(resp);
    -- RETURN;
    -- Look for server-side error and report it.
    ELSIF (resp.status_code >= 500) AND (resp.status_code <= 599) THEN
    DBMS_OUTPUT.PUT_LINE('Check if the Web site is up.');
    UTL_HTTP.END_RESPONSE(resp);
    RETURN;
    END IF;
    -- HTTP header lines contain information about cookies, character sets,
    -- and other data that client and server can use to customize each
    -- session.
    FOR i IN 1..UTL_HTTP.GET_HEADER_COUNT(resp) LOOP
    UTL_HTTP.GET_HEADER(resp, i, name, value);
    DBMS_OUTPUT.PUT_LINE(name || ': ' || value);
    END LOOP;
    -- Read lines until none are left and an exception is raised.
    --LOOP
    -- UTL_HTTP.READ_LINE(resp, value);
    -- DBMS_OUTPUT.PUT_LINE(value);
    --END LOOP;
    UTL_HTTP.GET_COOKIES(cookies);
    dbms_output.put_line('======================================');
    FOR i in 1..cookies.count LOOP
    IF (cookies(i).secure) THEN
    secure := 'Y';
    ELSE
    secure := 'N';
    END IF;
    -- INSERT INTO my_cookies
    -- VALUES (my_session_id, cookies(i).name, cookies(i).value,
    -- cookies(i).domain,
    -- cookies(i).expire, cookies(i).path, secure, cookies(i).version);
    dbms_output.put_line('site:'||url);
    dbms_output.put_line('cookies:');
    dbms_output.put_line('name:'||cookies(i).name);
    dbms_output.put_line('value:'||cookies(i).value);
    dbms_output.put_line('domain:'||cookies(i).domain);
    dbms_output.put_line('expire:'||cookies(i).expire);
    dbms_output.put_line('path:'||cookies(i).path);
    dbms_output.put_line('secure:'||secure);
    dbms_output.put_line('version:'||cookies(i).version);
    END LOOP;
    UTL_HTTP.END_RESPONSE(resp);
    EXCEPTION
    WHEN UTL_HTTP.END_OF_BODY THEN
    UTL_HTTP.END_RESPONSE(resp);
    END;
    /

    I use oracle database enterprise edtion 10.2.0.3. I have already figured out the epg on 10.2.0.3 to support apex 3.2.
    And as I described above, the apex site works fine for ip address , and localhost. but the cookie will be blocked by IE6, if I want to access the site by 'http://computername:port/apex/apex_admin'. This problem does not occured in firefox and google browser. Could someone give me answer?

  • Basic Questions About Compiling Source

    Hi!
    I have some very basic questions about compiling source on 10.6. BTW, if the unix discussions still exist, they've hidden them pretty well, so I hope I'm in the right place for this!
    First off, you simply cd to the source dir, wherever it may be - in my case ~/Downloads/source/  - and during the install process, everything will be installed in its proper dir, right?
    How do you know which compiler to use? There seem to be several: make, gmake, gcc, g++, etc...
    Once you do figure out which compiler to run, the process is supposed to go like this, right?
    ./configure
    make (or whatever)
    make install
    But this doesn't always work for me. For instance, I'm trying to compile 'arm', but it doesn't seem to have a 'configure' script.
    $ ls ~/Downloads/arm
    ChangeLog
    README
    armrc.sample
    setup.py
    LICENSE
    arm
    install
    /src
    Maybe it's that 'setup.py' file? What are you supposed to do?
    Of course, it's not only this one that's given me trouble. Sometimes the readme will say I have to edit a certain file for my system. Are there just a few standard changes you always make? Or is it...how can I put it...complicated? How do you find out what's needed in those cases?
    OS 10.6.8
    Xcode 3.2.4
    Python 2.7

    sudont wrote:
    I have some very basic questions about compiling source on 10.6. BTW, if the unix discussions still exist, they've hidden them pretty well, so I hope I'm in the right place for this!
    This is the place for UNIX discussions. If you have developer-related questions, there is a forum dedicated to that as well: Developer Forums
    First off, you simply cd to the source dir, wherever it may be - in my case ~/Downloads/source/  - and during the install process, everything will be installed in its proper dir, right?
    Yes. Hopefully the project you want to install follows standard conventions. If so, you can do "./configure", then "make", and finally "sudo make install" to install the software into "/usr/local".
    How do you know which compiler to use? There seem to be several: make, gmake, gcc, g++, etc...
    The make file will figure that stuff out.
    Once you do figure out which compiler to run, the process is supposed to go like this, right?
    ./configure
    make (or whatever)
    make install
    Yes, with the addition of "sudo" before "make install" because "/usr/local" is owned by root.
    But this doesn't always work for me. For instance, I'm trying to compile 'arm', but it doesn't seem to have a 'configure' script.
    $ ls ~/Downloads/arm
    ChangeLog
    README
    armrc.sample
    setup.py
    LICENSE
    arm
    install
    /src
    arm? You mean "arm (anonymizing relay monitor) - Terminal status monitor for Tor relays." You really don't want to be messing with that stuff. The only people involved with Tor that are trustworthy are US Navy intelligence who have their own uses for it. If you don't understand it as well as they do, best stay away.

  • Question about PNP...LDB

    Hi All,
    I have been asked a simple but strange question about PNP LDB. When we assigned logical database in our program, it will basically create a selection screen, which have certain fields. Like Today.. Some date ranges. Person assigned number, company code, company status.
    From my standpoint I know when ever we give selection to PNP screen we have to check this selection parameters in our programs, like date range ,person number, employee status etc ….RIGHT?
    Somebody ask me that without checking selection in our report I mean any parameters, it can filter the record, my Answer was BIG “NO”. You need to check all the parameters in your program.
    Next question asked by me was what the purpose of PNP. I replied that rather then declaring and doing bunch of databases SAP provide logical database so current all the records and do what ever you like to do.
    What you think guys?
    Thanks

    Here`s the question , when I am giving "1"active employee in employee status why its pulling up the information for '0' withdrawn employee?
    Message was edited by: Saquib Khan

  • Question about broker Switchover command

    Hi guys
    i have one question about switchover cmd . For example, i have 1 primary database called stdby3 and 2 standby databases that are called stdby1 and stdby2. When i performed switchover cmd to stdby2 standby database, why the old primary database stdby3 could not become new standby database after i performed a switchover; furthermore the new primary and standby databases are not opened after the switchover process is completed
    output screen:
    DGMGRL> show configuration;
    Configuration
    Name: stdby1
    Enabled: YES
    Protection Mode: MaxProtection
    Databases:
    stdby3 - Primary database
    stdby1 - Physical standby database
    stdby2 - Physical standby database
    Fast-Start Failover: DISABLED
    Current status for "stdby1":
    SUCCESS
    DGMGRL> SWITCHOVER TO stdby2
    Performing switchover NOW, please wait...
    Operation requires shutdown of instance "stdby3" on database "stdby3"
    Shutting down instance "stdby3"...
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    Operation requires shutdown of instance "stdby2" on database "stdby2"
    Shutting down instance "stdby2"...
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    Operation requires startup of instance "stdby3" on database "stdby3"
    Starting instance "stdby3"...
    Unable to connect to database
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Failed.
    You are no longer connected to ORACLE
    Please connect again.
    Unable to start instance "stdby3"
    You must start instance "stdby3" manually
    Operation requires startup of instance "stdby2" on database "stdby2"
    You must start instance "stdby2" manually
    Switchover succeeded, new primary is "stdby2"
    DGMGRL> show configuration;
    Error:
    ORA-01034: ORACLE not available
    Process ID: 0
    Session ID: 130 Serial number: 45
    DGMGRL> exit;
    oracle@localhost ~$ dgmgrl
    DGMGRL for Linux: Version 11.1.0.6.0 - Production
    Copyright (c) 2000, 2005, Oracle. All rights reserved.
    Welcome to DGMGRL, type "help" for information.
    DGMGRL> connect sys
    Password:
    Connected.
    DGMGRL> show configuration;
    Error:
    ORA-01034: ORACLE not available
    Process ID: 0
    Session ID: 0 Serial number: 0
    DGMGRL> connect sys@stdby3
    Password:
    Connected.
    DGMGRL> show configuration;
    Error:
    ORA-01034: ORACLE not available
    Process ID: 0
    Session ID: 0 Serial number: 0
    DGMGRL>
    Edited by: user6981287 on Jan 6, 2010 9:27 AM

    this is my configuration
    DGMGRL> show configuration
    Configuration
    Name: matrix
    Enabled: YES
    Protection Mode: MaxPerformance
    Databases:
    stdby1 - Primary database
    stdby2 - Physical standby database
    stdby3 - Physical standby database
    Fast-Start Failover: DISABLED
    Current status for "matrix":
    SUCCESS
    --- this is my first successful switchover -----
    DGMGRL> switchover to stdby2
    Performing switchover NOW, please wait...
    New primary database "stdby2" is opening...
    Operation requires shutdown of instance "stdby1" on database "stdby1"
    Shutting down instance "stdby1"...
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    Operation requires startup of instance "stdby1" on database "stdby1"
    Starting instance "stdby1"...
    ORACLE instance started.
    Database mounted.
    Switchover succeeded, new primary is "stdby2"
    -------------------this is my second switchover -------------
    DGMGRL> switchover to stdby1
    Performing switchover NOW, please wait...
    New primary database "stdby1" is opening...
    Operation requires shutdown of instance "stdby2" on database "stdby2"
    Shutting down instance "stdby2"...
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    Operation requires startup of instance "stdby2" on database "stdby2"
    Starting instance "stdby2"...
    Unable to connect to database
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Failed.
    You are no longer connected to ORACLE
    Please connect again.
    Unable to start instance "stdby2"
    You must start instance "stdby2" manually
    Switchover succeeded, new primary is "stdby1"
    DGMGRL>
    Edited by: user6981287 on Jan 7, 2010 12:57 AM
    Edited by: user6981287 on Jan 7, 2010 1:00 AM

Maybe you are looking for