Question about UTLMAIL in 10g

It seems that you have to be logged in as user sys in order to make UTLMAIL work. I'd like to create a procedure that looks something like this
SQL> declare
2 vsender varchar2(30) := '[email protected]';
3 vrecipient varchar2(30) :='[email protected]';
4 vmesg varchar2(100) := 'if you got this then it worked';
5 vmtype varchar2(30) := 'text/plain; charset=us-ascii';
6 begin
7 utl_mail.send(vsender, vrecipient, null, null, null, vmesg, vmtype, null);
8 end;
9 /
This works when logged in as sysdba, but doesn't work as a regular user. I get this error msg.
ERROR at line 1:
ORA-04063: package body "SCOTT.UTL_MAIL" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SCOTT.UTL_MAIL"
ORA-06512: at line 7
I logged in as sysdba and did
GRANT execute ON utl_mail to SCOTT
and it said grant successful. Do I need to make UTL_MAIL public?

user632088 wrote:
It seems that you have to be logged in as user sys in order to make UTLMAIL work. I'd like to create a procedure that looks something like this
SQL> declare
2 vsender varchar2(30) := '[email protected]';
3 vrecipient varchar2(30) :='[email protected]';
4 vmesg varchar2(100) := 'if you got this then it worked';
5 vmtype varchar2(30) := 'text/plain; charset=us-ascii';
6 begin
7 utl_mail.send(vsender, vrecipient, null, null, null, vmesg, vmtype, null);
8 end;
9 /
This works when logged in as sysdba, but doesn't work as a regular user. I get this error msg.
ERROR at line 1:
ORA-04063: package body "SCOTT.UTL_MAIL" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SCOTT.UTL_MAIL"
ORA-06512: at line 7
I logged in as sysdba and did
GRANT execute ON utl_mail to SCOTT
and it said grant successful. Do I need to make UTL_MAIL public?Why does SCOTT own the UTL_MAIL package?
ORA-04063: package body "SCOTT.UTL_MAIL" has errorshttp://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_mail.htm#BABDEAJF
To install UTL_MAIL:
sqlplus sys/<pwd>
SQL> @$ORACLE_HOME/rdbms/admin/utlmail.sql
SQL> @$ORACLE_HOME/rdbms/admin/prvtmail.plb
Looks like you ran the scripts (if you did) while logged in as the wrong user. You need to be logged in as SYS when you run the scripts.

Similar Messages

  • [Urgent] Some questions about Oracle Portal 10g - 11g upgrade

    Dear friends,
    We are under doing upgrading assessment of Oracle Portal from 10g to 11g. After reviewed the 'upgrading guide', we still have some questions as below:
    1. Whether the 'Instant Portal' feature remain in Oracle Portal 11g? If yes, how to migrate the Instant Portal 10g sites? If no, any workaround?
    2. Whether the old 10g Page Group and Pages will be still available after 11g upgrade? Also can customer import the old 10g transportset into Portal 11g?
    3. How about the customized Portal 10g objects (such as customized template, style, attributes) after 11g upgrade? Still be usable?
    4. Customer use PDK to develop many portlets in 10g. Can they use JDeveloper 11g to migrate their old project to 11g automatically?
    Thank you in advance and any comment are welcome.

    1. Whether the 'Instant Portal' feature remain in Oracle Portal 11g? If yes, how to migrate the Instant Portal 10g sites? If no, any workaround?Instant Portal is not available anymore in Oracle Portal 11g. The Instant Portal page groups will be migrated to standard Portal page groups. Maintenance of the Instant Portal can be done with the standard Portal tools. The Instant Portal tools are not available anymore.
    Whether the old 10g Page Group and Pages will be still available after 11g upgrade? Also can customer import the old 10g transportset into Portal 11g?Old 10g Page Groups are migrated to Portal 11g. They will still be available after the upgrade.
    Export/Import through transports sets has always been limited to instances of the same version. It is not supported between versions as documented in the Administration Guide :
    [11.2.1|http://download.oracle.com/docs/cd/E14571_01/portal.1111/e10239/cg_imex.htm#CCJBCCGD] System Requirements
    Before exporting and importing content, ensure that your system meets the minimum system requirements, as described in this section.
    Notes:
    * Export and import functions only within the same release of Oracle Portal and the same patch release, for example, release 10.1.4 to release 10.1.4 or release 11.1.1 to release 11.1.1. You cannot export and import between two different releases, such as release 10.1.2 to release 10.1.4 or release 10.1.4 to release 11.1.1.
    How about the customized Portal 10g objects (such as customized template, style, attributes) after 11g upgrade? Still be usable?Customized objects get migrated as well. Certain types (e.g. PL/SQL item types) need to be checked after upgrade as the behavior of the PL/SQL code may differ between database versions. This is particularly of concern when the 10.1.4.x Portal uses a 10.1 database. A database upgrade to either 10.2, 11.1 or 11.2 is necessary as Portal 11g is not supported with RDBMS 10.1.
    Customer use PDK to develop many portlets in 10g. Can they use JDeveloper 11g to migrate their old project to 11g automatically?Never done this, but the Portal framework is able to consume JPDK providers which are running in older versions of the toolkit. If the providers are running in standalone OC4J containers, you would be able to upgrade the framework and keep the providers in their OC4J containers. This will allow you to focus on the framework first and worry about your providers later.
    Thanks,
    EJ

  • Few questions about OWB migration 10g---- 11g and UIODs

    I am curretly migrating OWB repository from 10g to 11g.
    Both repositories are on the same database.
    We just have one single Project in our Repository. It is actually(preinstalled) MY_PROJECT renamed into something else. So it has the UOID of the "default" MY_PROJECT but of course, physical and business names are different.
    Because we renamed MY_PROJECT, complications occured when we first tried to do the repository upgrade the recommended way, with repository assistant. During the upgrade processes , the error came that the objects with same UOIDs but different names exist.
    Obviously, MY_PROJECT from the 10g repository collided with the new, preinstalled, MY_PROJECT in the (almost) empty 11g repository/workspace.
    Also, MY_PROJECT in 11g workspace has exactly the same UOID as the one created in 10g repository.
    I was told by Oracle support that this was a bug-but they do not see it as high priority, so we had to do workaround --the migration of the repository on 11g.
    Now my first Question: Was it completely insane to use MY_PROJECT for your actual ongoing Project? We never had any other problem with this constallation.I also noticed in forums that people indeed use MY_PROJECT for their work.
    The second question: Has anybody , ever, seen the same problem, when trying to upgrade to 11g ?
    The migration procedure is as follows:
    -install 11g Workspace with Repository Assistant
    -Export locations and data from 10g repository
    -Import locations and data in 11g repository- thé update option -matching on UOID..so we do not get problem with MY_PROJECT
    -register locations in11g repository
    -deploy all mappings and workflows
    Now, this all works fine..and our new 11g repository runs without problem..
    I am still puzzled by few things :
    New 11g repository is almost empty apart from MY_PROJECT and DEFAULT_CONFIGURATION. Now, MY_PROJECT in 11g has the same UOID as in oracle 10. But DAFAULT_CONFIGURATION in 11g has different UOID from DAFAULT_CONFIGURATION in 10g. It is always the same UIOD for every new 11g installation (I've upgraded repository on many databases).
    Now 3rd question: Is there any particular reason why DEFAULT_CONFIGURATION  has different UOID in 11g and MY_PROJECT hast the same UOID ? Is there any logic behind it -that I fail to grasp ?
    Another thing. I said that I am importing complete Project in the new repository with update option with matching on UIOD. I should get a problem with DAFAULT_CONFIGURATION, I thought, since it is in the full export of the Project and DEFAULT_CONFIGURATION has different UOID than in 11g repository.
    But I did not get the problem at all.Default Configuration was simply skipped during the import - visible from the import log.
    Therefore 4th question : Why didnät OWB try to import DEAFULT_CONFIG? Is it "internal" object and as such cant't be changed ?
    The reason I am so obsessed with UOIDs is that we have automated release procedure (between development, test and production repositores) which is based on comparing UOIDs.
    Therefore a s slight trace of concearn on my side, because the DEAFULT CONFIG now has different UOIDs than before. But on the other side, we just propagate mappings and workflows between repositories - I do not see why the default config should matter here .
    Thank very much in advance for any answers/suggestions/ideas and comments!
    Edited by: Reggy on 27.01.2012 07:12
    Edited by: Reggy on 27.01.2012 07:12

    I am curretly migrating OWB repository from 10g to 11g.
    Both repositories are on the same database.
    We just have one single Project in our Repository. It is actually(preinstalled) MY_PROJECT renamed into something else. So it has the UOID of the "default" MY_PROJECT but of course, physical and business names are different.
    Because we renamed MY_PROJECT, complications occured when we first tried to do the repository upgrade the recommended way, with repository assistant. During the upgrade processes , the error came that the objects with same UOIDs but different names exist.
    Obviously, MY_PROJECT from the 10g repository collided with the new, preinstalled, MY_PROJECT in the (almost) empty 11g repository/workspace.
    Also, MY_PROJECT in 11g workspace has exactly the same UOID as the one created in 10g repository.
    I was told by Oracle support that this was a bug-but they do not see it as high priority, so we had to do workaround --the migration of the repository on 11g.
    Now my first Question: Was it completely insane to use MY_PROJECT for your actual ongoing Project? We never had any other problem with this constallation.I also noticed in forums that people indeed use MY_PROJECT for their work.
    The second question: Has anybody , ever, seen the same problem, when trying to upgrade to 11g ?
    The migration procedure is as follows:
    -install 11g Workspace with Repository Assistant
    -Export locations and data from 10g repository
    -Import locations and data in 11g repository- thé update option -matching on UOID..so we do not get problem with MY_PROJECT
    -register locations in11g repository
    -deploy all mappings and workflows
    Now, this all works fine..and our new 11g repository runs without problem..
    I am still puzzled by few things :
    New 11g repository is almost empty apart from MY_PROJECT and DEFAULT_CONFIGURATION. Now, MY_PROJECT in 11g has the same UOID as in oracle 10. But DAFAULT_CONFIGURATION in 11g has different UOID from DAFAULT_CONFIGURATION in 10g. It is always the same UIOD for every new 11g installation (I've upgraded repository on many databases).
    Now 3rd question: Is there any particular reason why DEFAULT_CONFIGURATION  has different UOID in 11g and MY_PROJECT hast the same UOID ? Is there any logic behind it -that I fail to grasp ?
    Another thing. I said that I am importing complete Project in the new repository with update option with matching on UIOD. I should get a problem with DAFAULT_CONFIGURATION, I thought, since it is in the full export of the Project and DEFAULT_CONFIGURATION has different UOID than in 11g repository.
    But I did not get the problem at all.Default Configuration was simply skipped during the import - visible from the import log.
    Therefore 4th question : Why didnät OWB try to import DEAFULT_CONFIG? Is it "internal" object and as such cant't be changed ?
    The reason I am so obsessed with UOIDs is that we have automated release procedure (between development, test and production repositores) which is based on comparing UOIDs.
    Therefore a s slight trace of concearn on my side, because the DEAFULT CONFIG now has different UOIDs than before. But on the other side, we just propagate mappings and workflows between repositories - I do not see why the default config should matter here .
    Thank very much in advance for any answers/suggestions/ideas and comments!
    Edited by: Reggy on 27.01.2012 07:12
    Edited by: Reggy on 27.01.2012 07:12

  • [Urgent] Some questions about OID/OSSO 10g - 11g upgrade

    Dear all,
    We are under doing upgrading assessment of OID/OSSO 10g to 11g for a customer. After reviewed the 'upgrading guide', we still have some questions as below:
    1.     Whether the ‘10g DIP profiles’ will be still available after the OID 11g upgrade? Currently there are some sync of AD<->OID and DB->OID.
    2.     Whether the ‘WNA’ function will still work after the upgrade?
    3.     Is there a big change of OID API from 10g to 11g? If so, I think a big effort maybe on application modification.
    4.     I found that there is a OAM Basic version for OSSO 10g upgrade. So if this OAM Basic will migrate the OSSO configuration (like external application) automatically, or it must be re-configed after the upgrade?
    5.     Currently customer config OID 10g as BPEL/ESB’s identity store. So does BPEL/ESB 10g is certificated with OID 11g also? I didn’t find the certification so far.
    Thank you in advance and any comment are welcome.

    Dear all,
    We are under doing upgrading assessment of OID/OSSO 10g to 11g for a customer. After reviewed the 'upgrading guide', we still have some questions as below:
    1.     Whether the ‘10g DIP profiles’ will be still available after the OID 11g upgrade? Currently there are some sync of AD<->OID and DB->OID.
    2.     Whether the ‘WNA’ function will still work after the upgrade?
    3.     Is there a big change of OID API from 10g to 11g? If so, I think a big effort maybe on application modification.
    4.     I found that there is a OAM Basic version for OSSO 10g upgrade. So if this OAM Basic will migrate the OSSO configuration (like external application) automatically, or it must be re-configed after the upgrade?
    5.     Currently customer config OID 10g as BPEL/ESB’s identity store. So does BPEL/ESB 10g is certificated with OID 11g also? I didn’t find the certification so far.
    Thank you in advance and any comment are welcome.

  • Questions about free Download Oracle 10g, Database and Developer suite

    Hi everyone, got some questions..
    1) Is it possible to download free Oracle 10g and Developer suite? is a 30 day license trial or something like that?
    2) On windows systems which are the minimun requirements?, for example in a Pentium 4, 512Mb RAM, Windows XP Home edition is OK?
    3) Should I download Standard Edition? Personal?
    4) If I am trying to update my Oracle Developer knowledge (I was developer on 1999 with Oracle 7.3 and Developer 2000) what products do I have to install?? Oracle DB 10g, Developer Suite,Application Server too?, what else?
    Thanks guys!
    J.

    My answer you could find here Questions about free download Oracle 10g, Developer Suite

  • Question about using 10g/11g and APEX ...

    Hi,
    I just recently learned of Oracle's APEX and have a few questions about using it.
    Can I use APEX with express, standard, and enterprise editions of 10g and 11g?
    Are all of these free to use?

    You might want to read about APEX rather than jumping into questions that are reasonably well documented. Info at http://www.oracle.com/technology/products/database/application_express/index.html
    Your specific questions:
    1) Apex is a package that can be installed into any properly licensed database.
    2) The price for the production license of the database varies by edition.
    The price for Express Edition is $0 for use in production. Part of the cost for that edition is 'no Oracle Support based support, no patches, data volume limitation, etc.'

  • Some questions about the integration between BIEE and EBS

    Hi, dear,
    I'm a new bie of BIEE. In these days, have a look about BIEE architecture and the BIEE components. In the next project, there are some work about BIEE development based on EBS application. I have some questions about the integration :
    1) generally, is the BIEE database and application server decentralized with EBS database and application? Both BIEE 10g and 11g version can be integrated with EBS R12?
    2) In BIEE administrator tool, the first step is to create physical tables. if the source appliation is EBS, is it still needed to create the physical tables?
    3) if the physical tables creation is needed, how to complete the data transfer from the EBS source tables to BIEE physical tables? which ETL tool is prefer for most developers? warehouse builder or Oracle Data Integration?
    4) During data transfer phase, if there are many many large volume data needs to transfer, how to keep the completeness? for example, it needs to transfer 1 million rows from source database to BIEE physical tables, when 50%is completed, the users try to open the BIEE report, can they see the new 50% data on the reports? is there some transaction control in ETL phase?
    could anyone give some guide for me? I'm very appreciated if you can also give any other information.
    Thanks in advance.

    1) generally, is the BIEE database and application server decentralized with EBS database and application? Both BIEE 10g and 11g version can be integrated with EBS R12?You, shud consider OBI Application here which uses OBIEE as a reporting tool with different pre-built modules. Both 10g & 11g comes with different versions of BI apps which supports sources like Siebel CRM, EBS, Peoplesoft, JD Edwards etc..
    2) In BIEE administrator tool, the first step is to create physical tables. if the source appliation is EBS, is it still needed to create the physical tables?Its independent of any soure. This is OBIEE modeling to create RPD with all the layers. If you build it from scratch then you will require to create all the layers else if BI Apps is used then you will get pre-built RPD along with other pre-built components.
    3) if the physical tables creation is needed, how to complete the data transfer from the EBS source tables to BIEE physical tables? which ETL tool is prefer for most developers? warehouse builder or Oracle Data Integration?BI apps comes with pre-built ETL mapping to use with the tools majorly with Informatica. Only BI Apps 7.9.5.2 comes with ODI but oracle has plans to have only ODI for any further releases.
    4) During data transfer phase, if there are many many large volume data needs to transfer, how to keep the completeness? for example, it needs to transfer 1 million rows from source database to BIEE physical tables, when 50%is completed, the users try to open the BIEE report, can they see the new 50% data on the reports? is there some transaction control in ETL phase?User will still see old data because its good to turn on Cache and purge it after every load.
    Refer..http://www.oracle.com/us/solutions/ent-performance-bi/bi-applications-066544.html
    and many more docs on google
    Hope this helps

  • Question about Scheduled Task

    Question about Scheduled Task
    RequestCenter 2008.3
    Oracle 10g
    Websphere 6.1.27
    IE 7
    Hi:
    I have tried to get a scheduled task to work without any luck.  I am referencing a date/time field on the form and the task goes to "Scheduled", but never moves to "Ongoing".
    I've opened a case with support, but was wondering if anyone has gotten this to work.
    Thank you
    Daniel
    Safeway Inc.

    We just went through this too. If the plan is fairly complex, and has allot of conditional tasks you will have difficulty.
    The explanation I got from Shweta is that the calculation that determines the OLAs before my scheduled task was to start looks at ALL the potential tasks and combines them, essentially saying the duration is much longer than what you think it should be, ie the sum of all potential task OLAs, not just the tasks that became active.
    Bottom line if your scheduled date is with

  • Few questions about upgrading database

    Hi everyone,
    greetings of the day
    I have few questions about the upgrading database,
    In export and import mode
    1.can we have new name for the target database,
    2.I think we need to create tablespaces ,do we need to create users as well
    3.If we are upgrading from 9i to 10g database ,any activity to be perfromed other than creating a new sysaux tablespace
    4.How come we get consistent export
    In DBUA mode ( in the same machine only)
    1.Do we need shutdown / startup restrict the database
    2.How can we move the files to the new location
    3.Can we change db_name of the database
    4.Can we use the old database as well
    In manual upgration using catupgrd scripts
    1.Can we rename the db_name
    2.can we use old database as well
    3.how to move the database files to the new location
    4.can we perform this kind of upgrade on a different server
    5.when we startup upgrade in the new home ,how it identifies the old database in-order to upgrade the old one
    Thanks

    udayjampani wrote:
    Hi everyone,
    greetings of the day
    Pl post details of source and target database versions, along with your OS details.
    I have few questions about the upgrading database,
    In export and import mode
    1.can we have new name for the target database,Yes.
    2.I think we need to create tablespaces ,do we need to create users as wellYou can create users, but it is not necessary. You need to pre-create tablespaces only if their characteristics/locations on the target are different than on the source.
    3.If we are upgrading from 9i to 10g database ,any activity to be perfromed other than thisNot that I am aware of - see the steps in the Upgrade Guide - http://docs.oracle.com/cd/B19306_01/server.102/b14238/expimp.htm
    4.How come we get consistent export wetherEnsure the database is started in restricted mode, so users will not be able to access the database during the export.
    >
    In DBUA mode ( in the same machine only)
    1.Do we need shutdown / startup restrict the databaseNo - DBUA will do this automatically for you.
    2.How can we move the files to the new locationYou can after the upgrade move the datafiles to wherever you want - use the ALTER DATABASE RENAME DATAFILE (http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_1004.htm#i2082829) command.
    3.Can we change db_name of the databaseI do not believe this is possible with DBUA.
    4.Can we use the old database as wellNo - the database will be upgraded by DBUA - there is no "old" database.
    >
    >
    In manual upgration using catupgrd scripts
    1.Can we rename the db_nameYes.
    2.can we use old database as wellNo - the scripts will upgrade the database - there is no "old" database.
    3.how to move the database files to the new locationSee above.
    4.can we perform this kind of upgrade on a different serverPl elaborate on what you mean by this. You can copy the existing database to a different server (assuming compatible OS) and upgrade it there.
    >
    >
    ThanksHTH
    Srini

  • 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?

  • Question about table compression

    I administer several 10g databases, and have been asked to compress tables in several tablespaces. I am unfamiliar with using compression. I have read some Oracle documentation on the ALTER TABLE... MOVE COMPRESSION command, but still have several questions. Can anyone recommend a good white paper, or other documentation on how best to compress tables with existing data? Thank you in advance for your guidance!

    Basically, I have questions about how to select which tables will benefit from compression. I also read somewhere that, once a table has been compressed, new updates to the compressed data will not be compressed and so I will need to re-compress the tables periodically.
    I also needed to know if the ALTER TABLE statement will compress the existing data or just future inserted data. Through further research I found that by using the MOVE clause, it will compress the existing data. I will also need to rebuild the indexes once the ALTER TABLE statement is complete.
    Thank you for your help and encouragement!

  • Questions about RAC

    I was reading the article about installing the RAC.
    My conclussion , I can have till 127 instaces of a Oracle 10G database, working simultane. That is good really good and powerfull.
    My questions
    1º). ¿Can I have , by example, 3 , or any other number, of computer working with a HTMLDB instance or Oracle Aplication Server everyone serving pages to Internet and all then conect to one of those nodes? I think that yes, but prefer confirmation
    2º) In case of failure of any of these nodes, broken computer ,by example, and I need to replace it, or I want add new nodes to a RAC system. ¿How I can do this? or ¿Where I can find documentation about this?
    thanks for your help.

    Is posting Question about RAC some kind of thought experiment on clustering? Like, if you post the same question several tyimes do you get faster answers?
    Cheers, APC

  • Newbee questions about XE application builder

    Hi
    I find that Oracle support someting that we can use to build some real database driven applications
    i have some questions about it :
    1-Does this application builder differ from Oracle 10g R2 Application builder ? i means is it limited ?
    2-Does any one use it to build a real world application that works some where in some business place ?
    3-what is its behind code and technology , does it use JSF and managed Beans ? how i can see the generted codes ?
    Thanks

    Hello,
    Here's the link to the Application Express Forum Oracle Application Express (APEX)
    You should also look at the Application Express OTN page, http://www.oracle.com/technology/products/database/application_express/index.html there is howtos tutorials all sorts of good stuff.
    Carl

  • Questions about DAO

    Hi,
    we have some questions about DAO, Someone knows the answers?
    In versión 10g, one could create DAOs (Data Access Objects) from DB and then they could use them for extract and store data.
    In BPM 11g, how one could store information in the DB? How can they integrate them?
    Thanks in advance
    Antonio

    In 11g Database Adapters are used for direct access to the database. You add a DB adapter reference to your composite then this gets exposed as a service that can be invoked from the BPMN/BPEL process.
    Some documentation can be found here:
    http://download.oracle.com/docs/cd/E14571_01/integration.1111/e10231/adptr_db.htm#BGBBHJGC

  • Question about RAC and ASM

    Hi,
    We are thinking about build RAC using ASM for OEM database. It'll have two nodes, oracle 10g and Hitachi san with solaris ( or linux ). I've few questions about RAC and ASM.
    1) Do I need to have ASM instance running on each node ? ( most likely yes... but want to make sure )
    2) can I share oracle_home between ASM instance and database instance ? what is the best choice ?
    3) I'm planning to use shared disks for all files, all databases.... what are the pros/cons ?
    4) what should be the installation procedure ? Meaning, first create ASM instance on each node, then install cluster software, build RAC databases...... can someone explain..
    5) I believe RMAN is the only option for backup since I'm using ASM, correct ?
    I'm a newbie to RAC and ASM..
    Thanks,

    user4866039 wrote:
    1) Do I need to have ASM instance running on each node ? ( most likely yes... but want to make sure )yes.
    2) can I share oracle_home between ASM instance and database instance ? what is the best choice ?in 10g you can, in 11gr2 you cannot. and it might be better to seperate them because it will give you more flexibility with patching.
    3) I'm planning to use shared disks for all files, all databases.... what are the pros/cons ?if you share your oracle_home you won't be able to do rolling updates. so i recommend to keep oracle_homes local.
    4) what should be the installation procedure ? Meaning, first create ASM instance on each node, then install cluster software, build RAC databases...... can someone explain..follow the install guide for your respective version. for 10g you'd install clusterware first, then asm and database is last.
    5) I believe RMAN is the only option for backup since I'm using ASM, correct ?pretty much. you could stop your database and dump the raw devices or use asmcmd/asmftp but rman is definitely the best choice
    Bjoern

Maybe you are looking for

  • Messages are in To be delivered state in the Adapter engine

    Hi, For all the receiver file adapters the messages are successful processed through Integration Engine ,no messages are stuck in SMQ1 & SMQ2 on Inegration engine. All the messages are stuck in Adapter Engine with the status "To be Delivered ". These

  • HT1420 How to authorize an iPad for iTunes

    I am having a problem finding where I go to to authorize my iPad for iTunes. I am not sure which operating system I have. Can you hel?

  • Installation of Photoshop Elements 9

    Hello how to install my photoshop elements 9 unto my new laptop that hasn't a disc drive? Thanks

  • OS 9 - OS X filename tokenization

    When older versions of Mac software (mainly OS 9 software) refer to files whose pathnames include files longer than 31 characters, something (Mac OS, the software?) tokenizes the file name. I would like to prepare OS X filenames for use in a piece of

  • Need a Query/User Authorization Report

    Hello All, I am looking for tables, function modules, programs etc that will aid in building a report that will show every query and which users have access to them. This program I am wanting to build will serve as a periodic "reality check" on our a