Where is this sample application?  (xcm content mgmt app)

http://www.oracle.com/technology/tech/xml/xmldb/Current/TWP_XMLDB_Content_Mgmt.pdf
This does not appear to be CMSXDB just based on the names of the servlets.

if you can also provide me with an early access of the xcm content mgmt app, that would be of great help.
Thanks.
meeru
[email protected]

Similar Messages

  • Sample Applications and/or obtaining apps from Influxis

    Anyone have a list of other sites providing example apps
    and/or free applications for download? I also was interested in
    getting some of the apps from Influxis to test with. Has anyone
    been able to get any of those? LEt me know.

    I have used their services before. You can get the
    applications from influxis by registering with them. Those
    application are free included in the registration fee. However, you
    will get only client code (flash fla files) and not the server
    code.
    Hope this helps.
    Carlos

  • Getting error while running TutWD_FlightBooking_Init sample application

    Hello,
    I have downloaded TutWD_FlightBooking_Init.zip and Handling Transactions with BAPIs in Web Dynpro.pdf document and created a WebDynpro sample application.
    I have deployed it in WAS6.40 SP9 and created appropriate JCo connections and these JCo connections are working fine.
    While accessing application from browser it gives me following error.
    Thanks in advance to help on same.
    Error: ==================
    Error stacktrace:
    com.sap.tc.webdynpro.services.exceptions.WDTypeNotFoundException: type com.sap.wd.tc.flightbooking.types.Testrun could not be loaded: com.sap.dictionary.runtime.DdException:
    at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getSimpleType(DataTypeBroker.java:242)
    at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getDataType(DataTypeBroker.java:205)
    at com.sap.tc.webdynpro.progmodel.context.AttributeInfo.init(AttributeInfo.java:471)
    at com.sap.tc.webdynpro.progmodel.context.NodeInfo.initAttributes(NodeInfo.java:771)
    at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:756)
    at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:761)
    at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:40)
    at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:199)
    at com.sap.tc.webdynpro.progmodel.controller.Component.getCustomControllerInternal(Component.java:433)
    at com.sap.tc.webdynpro.progmodel.controller.Component.getMappableContext(Component.java:371)
    at com.sap.tc.webdynpro.progmodel.controller.Component.getMappableContext(Component.java:400)
    at com.sap.tc.webdynpro.progmodel.context.MappingInfo.init(MappingInfo.java:138)
    at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:746)
    at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:761)
    at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:40)
    at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:199)
    at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:540)
    at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:422)
    at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:130)
    at com.sap.tc.webdynpro.progmodel.view.InterfaceView.initController(InterfaceView.java:41)
    at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
    at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.displayToplevelComponent(ClientComponent.java:134)
    at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:374)
    at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:593)
    at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
    at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:249)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
    at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    Caused by: com.sap.dictionary.runtime.DdException:
    at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker$1.fillSldConnection(DataTypeBroker.java:89)
    at com.sap.dictionary.runtime.ProviderFactory.internalResolveLogicalNameToJCODestination(ProviderFactory.java:408)
    at com.sap.dictionary.runtime.ProviderFactory.resolveLogicalNameToJCODestination(ProviderFactory.java:354)
    at com.sap.dictionary.runtime.ProviderFactory.internalGetProvider(ProviderFactory.java:215)
    at com.sap.dictionary.runtime.ProviderFactory.getProvider(ProviderFactory.java:180)
    at com.sap.dictionary.runtime.DdDictionaryPool.getProvider(DdDictionaryPool.java:78)
    at com.sap.dictionary.runtime.DdDictionaryPool.getDictionary(DdDictionaryPool.java:64)
    at com.sap.dictionary.runtime.DdDictionaryPool.getDictionary(DdDictionaryPool.java:39)
    at com.sap.dictionary.runtime.DdBroker.getDataType(DdBroker.java:149)
    at com.sap.dictionary.runtime.DdBroker.getSimpleType(DdBroker.java:170)
    at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getSimpleType(DataTypeBroker.java:234)
    ... 44 more
    In this sample application I am using following detinations
    1- WD_FLIGHTBOOKING_MODELDATA_DEST
    2- WD_FLIGHTBOOKING_RFC_METADATA_DEST
    When I am going through the Web Dynpro Content Administrator and looking inside my application local/TutWD_FlightBooking_Init -> Applications -> FlightBookingApp -> JCo Connections, it shows these two destination.
    Any idea?
    Thanks
    Dayana

    Hi Dayana.
    I look your very old post because I'm searching the TutWD_FlightBooking_Init.zip file.
    Do you remember where you found it or can you send to me your file (if you keep it again)? I'm nt able to find it on sdn. Could be that is been removed :-((
    If you can send to me, my address is [email protected]
    Very thanks in advance.
    Ciao. Nicola

  • Cannot Initialize Sample Application in Hyperion Planning

    Hi,
    I am new to Essbase and Hyperion EPM System 11.1.1.1.0, and I am currently trying to test Planning functionality. I have installed and configured the EPM system, and when I run the EPM System Diagnostics, everything is Successful except Connecting to Essbase Studio Server (which is a seperate issue for another thread).
    I am trying to work with the sample Planning application included with the install. I followed directions here from John Goodwin's blog, but I encounter an error when I try to initialize the sample application. I have also tried creating the application through the Workspace, which is documented here. I get the same error when initializing the sample application.
    The error message I'm getting says: "Failed to initialize Sample Application. Please see log for details." Where is this Planning log located? I am running on Tomcat.
    When I try to create the database, following John's blog, through Administration > Manage Database > Create, I also am getting an error on step 18 of 21: [Consol] Verifying member formulas. The error reads:
    com.hyperion.planning.olap.HspVerifyOutlineException: Verify Outline failed with the following errors:
         Error [1200497] detected in member formula for member "411100".
         Error [1200497] detected in member formula for member "412100".
         Error [1200497] detected in member formula for member "412200".
         Error [1200497] detected in member formula for member "451000".
         Error [1200497] detected in member formula for member "501111".
         Error [1200497] detected in member formula for member "501112".
         Error [1200497] detected in member formula for member "501130".
         Error [1200497] detected in member formula for member "501240".
         Error [1200497] detected in member formula for member "501250".
         Error [1200497] detected in member formula for member "511200".
         Error [1200497] detected in member formula for member "511300".
         Error [1200497] detected in member formula for member "511400".
         Error [1200497] detected in member formula for member "511500".
         Error [1200497] detected in member formula for member "511600".
         Error [1200497] detected in member formula for member "511700".
         Error [1200497] detected in member formula for member "511800".
    What do I need to do to get this sample application up and running so I can see what it does?
    How do I initialize the sample application?
    Why can't I create a database correctly (without the error above) so I can then load data into the Consol database via the Essbase Administration Services Console? Currently the outline in EAS does not verify (it gives me the same list of member error messages above), and so I cannot load the sampleapp_data into the database. If anyone has any insight, please help. Thank you.
    -Scott

    Thanks Seb,
    This was very helpful, but my problem of initiliazing and creating a functional Sample Applicaiton is not quite solved. I checked my outline in Essbase Administration Services, and received the same member errors I mentioned in my first post. It seems that my outline has member formulas that reference unknown member names (as you suggested), so these members with invalid member formulas are returning errors. I went in to all these members and manually changed the formula scripts to ; (semi-colon) and verified them.
    After I fixed all the errors, the outline verified successfully. However, I still am getting an Error when trying to load data from sampleapp_data.txt file. The first couple times, my error was related to unknown members names that were in the datafile but not in my outline, like "FY08", "Plan", "BAS" (i'm guessing this is a currency?), and "Working". It gave me these errors one at a time, so for example, the first time when loading the data the error would read "Unknown Member in File [FY08]", then after i added that member to the outline it would go through a list of other unknown members one by one. Finally, when I manually added them all, I am currently getting this error message after attempting to load the sampleapp_data.txt file:
    Parallel dataload enables; [1] block prepare threads, [1] block write threads.
    Incorrect Number Of Column Members In Asymmetric File After [1] Records Completed.
    Unexpected Essbase error 1003005.
    I have the Oracle guide that describes what Essbase error 1003005 means, but the information isn't very helpful to me. The guide simply seems to suggest that I check to see that my datasource is valid. Since my data source is the sampleapp_data.txt file included with the installation, I myself did not create the data so I really don't know how to ensure that it is valid. Is it possible that when I downloaded the files, I got a bad version of the Sample Application database outline or datafile? I am unsure of how to fix this problem, as my goal still remains to test the functionality of Essbase and Hyperion Planning. If anyone can point towards a solution or towards another way to test out applications in Planning, please help. Thank you.
    User3x3

  • Sample application not running.

    Hi,
    I have downloaded sample application from Oracle website. Name of sample application is "Servlet Session Management Sample Application". But i got the following error. I have unlocked the OE schema used in this sample application. Any solution for it.
    javax.naming.NameNotFoundException: OE not found
         at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:124)
         at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:189)
         at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:63)
         at javax.naming.InitialContext.lookup(InitialContext.java:350)
         at oracle.otnsamples.servlets.EditCart.getProducts(EditCart.java:139)
         at oracle.otnsamples.servlets.EditCart.doPost(EditCart.java:115)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:684)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)

    To provide a little context for the problem I am having:
    I am following examples on how to use Essbase based on the book "Look Smarter Than You Are With Essbase" by Edward Roske and Tracy McMullen. I am new to Hyperion and Essbase, and am trying to learn about it and document what it can do. I used the the Sample Applicaiton, Basic database that came with the installation files and opened it in Excel by connecting to Essbase through Provider Services (all of this was done within Excel). The sample is based on a fictious company called The Beverage Company. I set-up a specific view that shows Sales of the Cola product in the East region, comparing the Actual sales with the Budget sales. The Sales of each city within East sum-up into a total for the East region. When I change the Sales in a specific city, like New York, I can successfully hit Submit Data (from the Hyperion menu within Excel), and then can see that it has been updated in the Essbase Administrative Services Console. However, when I try to calculate the data, throught Excel menu Hyperion > Calculation Options > Calculate (like the book says to do), I do not get the same result as the book says. Instead of updating the Total Sales for the East region, it reverts the data entry in the New York cell back to the original value. So essentially, any ability to enter in new data or change budget data, which is the purpose of Planning, is non-functional if I cannot get the Calculate the data I change. Have other people tried to do a similiar task of updating cell data in Excel and calculate it? If so, were the results successful?

  • Error While Login ADF Security Sample Application

    Hi All,
    Jdevloper Version : 11.1.1.5.0
    we are Creating ADF Login Application contains login.jspx and main.jspx pages.
    we define ADF Security on this Sample Application.
    when we provide valid credentials to login(username and password) it shows Error:
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead.
    The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism,
    that an old resource is permanently unavailable and has no forwarding address. 
    ManagedBean(BackingbeanScope) doLogin():
             public String doLogin() {
            String un = _userName;
            byte[] pw = _password.getBytes();
            FacesContext ctx = FacesContext.getCurrentInstance();
            HttpServletRequest request =(HttpServletRequest)ctx.getExternalContext().getRequest();
            try {
                Subject subject =Authentication.login(new URLCallbackHandler(un, pw));
                weblogic.servlet.security.ServletAuthentication.runAs(subject,request);
                String loginUrl = "/adfAuthentication?success_url=/faces/main.jspx";
                HttpServletResponse response =(HttpServletResponse)ctx.getExternalContext().getResponse();
                RequestDispatcher dispatcher =request.getRequestDispatcher(loginUrl);
         ctx.responseComplete();
        catch (FailedLoginException fle)
                    FacesMessage msg =new FacesMessage(FacesMessage.SEVERITY_ERROR, "Incorrect Username or Password", "An incorrect Username or Password was specified");
                    ctx.addMessage(null, msg);
            return null;
    In ADF Security We Define :
    User : admin1
    Enterprise Role  : ManagerGroup(added user admin1 to this EnterpriseRole)
    Application Role : Manager
    Resource Grants  : Resource Type : Web Page
                               login page
                              main  page -  Granted Role(Manager)
    jazn-data.xml file
    <?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?>
    <jazn-data xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/jazn-data-11_0.xsd">
      <jazn-realm default="jazn.com">
        <realm>
          <name>jazn.com</name>
          <users>
            <user>
              <name>admmin1</name>
              <display-name>admmin1</display-name>
              <credentials>{903}y2I4TDwMavn90VxJJfPfgxtBsRnF0qiaMoxzP93XF74=</credentials>
            </user>
          </users>
          <roles>
            <role>
              <name>ManagerGroup</name>
              <display-name>ManagerGroup</display-name>
              <members>
                <member>
                  <type>user</type>
                  <name>admmin1</name>
                </member>
              </members>
            </role>
          </roles>
        </realm>
      </jazn-realm>
      <policy-store>
        <applications>
          <application>
            <name>ADFLogin</name>
            <app-roles>
              <app-role>
                <name>Manager</name>
                <class>oracle.security.jps.service.policystore.ApplicationRole</class>
                <display-name>Manager</display-name>
                <members>
                  <member>
                    <name>ManagerGroup</name>
                    <class>oracle.security.jps.internal.core.principals.JpsXmlEnterpriseRoleImpl</class>
                  </member>
                </members>
              </app-role>
            </app-roles>
            <jazn-policy>
              <grant>
                <grantee>
                  <principals>
                    <principal>
                      <name>Manager</name>
                      <class>oracle.security.jps.service.policystore.ApplicationRole</class>
                    </principal>
                  </principals>
                </grantee>
                <permissions>
                  <permission>
                    <class>oracle.adf.share.security.authorization.RegionPermission</class>
                    <name>multiofonds.adf.common.view.pageDefs.mainPageDef</name>
                    <actions>view</actions>
                  </permission>
                </permissions>
              </grant>
            </jazn-policy>
          </application>
        </applications>
      </policy-store>
    </jazn-data>
    Please help us how to resolve it.
    Thanks,
    kumar

    A best practice in this situation is to check on a running sample e.g. Oracle ADF: Security for Everyone
    I guess your resource grants are not set correctly.
    Timo

  • ANN : New Oracle XDK 10g Sample Application

    Hello,
    Check out this new Oracle XDK 10g Sample Application at http://otn.oracle.com/sample_code/tech/xml/index.html that demonstrates the Unicode Support of XDK using the scenario of a Real Estate Portal. This sample application also discusses the XSLT Extensions and illustrates the following features:
    - Encoding XML documents in different character sets ( UTF-8, UTF-16, ISO-8859-1 )
    - Sending and receiving XML documents over HTTP along with character encoding information
    - Using single style-sheet for multilingual HTML page generation with the help of XSLT extension function facility provided by Oracle XDK 10g
    - Storing XML documents in XMLType column of Oracle database along with appropriate encoding
    - Generating XML documents on using Oracle XDK 10g DOM API's along with encoding attribute
    The sample application supports two languages; English and French.
    Regards,
    OTN Team

    I have got the following error when i run the WebServicesAssembler.jar
    D:\Oracle\Oc4j\j2ee\home>java -jar d:/oracle/oc4j/webservices/lib/WebServicesAss
    embler.jar -config etc/config.xml
    Exception in thread "main" java.util.zip.ZipException: The system cannot find th
    e path specified
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:105)
    at java.util.jar.JarFile.<init>(JarFile.java:110)
    at java.util.jar.JarFile.<init>(JarFile.java:52)
    D:\Oracle\Oc4j\j2ee\home>java -jar WebServicesAssembler.jar -config etc/config.x
    ml
    Exception in thread "main" java.lang.InstantiationException: Unknown deployment
    tag in JMS Web Service Example: <option>
    at com.evermind.xml.XMLConfig.parseDeploymentMainNode(XMLConfig.java:293
    at oracle.j2ee.ws.tools.WsAssemblerConfig.parseDeploymentMainNode(WsAsse
    mblerConfig.java:68)
    at com.evermind.xml.XMLConfig.parseRootNode(XMLConfig.java:268)
    at com.evermind.xml.XMLConfig.init(XMLConfig.java:147)
    at com.evermind.xml.XMLConfig.init(XMLConfig.java:88)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.init(WsAssemblerConfig.java:30
    at oracle.j2ee.ws.tools.WsAssembler.main(WsAssembler.java:17)

  • Avitek Sample Application - problems after imported to Eclipse

    I downloaded "Avitek™ Medical Records Sample Application" and started a domain successfuly with this aplication. Then I imported its to my Eclipse Juno with the interest to debug this sample application. I included every lib are need. Now I am getting the error "Default target install does not exist in this project" in every build.xml on the target "<project name=".
    Other error I got is "The type javax.jms.Message cannot be resolved. It is indirectly referenced from required .class files" in the PatientNotifierBroker project. I looked for javax.jms_1.1.2.jar and I had already added this library.
    Have someone face both problems after imported this sample?

    11g by default is case sensitive username/password.
    You can disable that with setting parameter SEC_CASE_SENSITIVE_LOGON to false.
    SQL> SHOW PARAMETER SEC_CASE_SENSITIVE_LOGON
    SQL> ALTER SYSTEM SET SEC_CASE_SENSITIVE_LOGON = FALSE;

  • OpenWorld 2004 Workflow+BPEL Sample Application

    Hi,
    There was a great demo at Oracle OpenWorld that integrated Oracle Workflow and the Oracle BPEL PM. Please provide download instructions for this sample application or instructions for duplicating the environment.

    Cori,
    Thanks! I will be working on making this available on OTN.
    Cheers,
    Raja

  • Flex Sample application - where to submit ?

    Flex Sample application - where to submit ?
    Hello, we have developed a Flex based CMS which I bielieve
    deserves to be featured as sample application on the Adobe site.
    The problem is - we can't find any informationwhere to submit the
    URL ? Can anyone help please.
    Martin

    here you go - >
    www.martinkonrad.com.au/cms_dev

  • ı have installed an application about lock system but the application isnt about lock systm this is an code reader. when ı see the application's pictures this is an lock application but content not same. I have got laid...what shoul I do?

    I have installed an application about lock system but the application isnt about lock system this is an code reader. When ı see the application's pictures this is an lock application but content not same. I have got laid...what should I do?

    semihtinas wrote:
    Please make something these fraudsters
    You're not addressing Apple here. This is a user to user technical support forum. You can submit feedback to Apple here:
    http://www.apple.com/feedback
    Other contact information can be found using the Contact Us link at the bottom right of every page.

  • Where can I get this sample database?

    Hi,
    I'm attending some PL/SQL classes, where we use the most popular, I think, sample date base - this one which contains i.e emp, dept etc tables. I've downloaded and installed Oracle Database 10g Express Edition and thought it contains this sample base. Unfortunately I can't find it there so I suppose I have to get it from somewhere else.
    Could you maybe tell me, where can I find this sample date base?
    Thx in advance.
    mz

    I would have expected the this schema to be installed with the DB. Have you tried to log on to the SCOTT schema? conn scott/tiger@sid
    Also, I know when I installed my 10Gr2 database the scott schema was locked by default. Have you checked to see if SCOTT even exists? As system try the following:
    SQL> select * from all_users where username = 'SCOTT';
    USERNAME USER_ID CREATED
    SCOTT 54 30-AUG-05
    1 row selected.

  • Where is Sporting Goods Application sample code?

    I'm using Oracle Forms 6i and I can't find the sample application in OTN. Is there anyone who can send me the code or link to it?
    Best regards

    OK,
    here it is (it's pretty long, you mind):
    DROP TABLE CUSTOMERS;
    DROP SEQUENCE CUSTOMERS_SEQ;
    DROP TABLE EMPLOYEES;
    DROP SEQUENCE EMPLOYEES_SEQ;
    DROP TABLE DEPARTMENTS;
    DROP SEQUENCE DEPARTMENTS_SEQ;
    DROP TABLE INVENTORIES;
    DROP TABLE PRODUCT_INFORMATION;
    DROP TABLE PRODUCT_DESCRIPTIONS;
    DROP TABLE ORDER_ITEMS;
    DROP TABLE ORDERS;
    CREATE TYPE CUST_ADDRESS_TYP AS OBJECT
    (STREET_ADDRESS VARCHAR2(40),
    POSTAL_CODE VARCHAR2(10),
    CITY VARCHAR2(30),
    STATE_PROVINCE VARCHAR2(10),
    COUNTRY_ID CHAR(2));
    CREATE TABLE CUSTOMERS
    (CUSTOMER_ID NUMBER(6) NOT NULL,
    CUST_FIRST_NAME VARCHAR2(20) CONSTRAINT
    CUST_FNAME_NN NOT NULL,
    CUST_LAST_NAME VARCHAR2(20) CONSTRAINT
    CUST_LNAME_NN NOT NULL,
    CUST_ADDRESS CUST_ADDRESS_TYP,
    PHONE_NUMBERS VARCHAR2(30),
    NLS_LANGUAGE VARCHAR2(3),
    NLS_TERRITORY VARCHAR(30),
    CREDIT_LIMIT NUMBER(9,2),
    CUST_EMAIL VARCHAR2(30),
    ACCOUNT_MGR_ID NUMBER(6),
    CONSTRAINT CUSTOMER_CREDIT_LIMIT_MAX
    CHECK (CREDIT_LIMIT <= 5000),
    CONSTRAINT CUSTOMER_ID_MIN
    CHECK (CUSTOMER_ID > 0));
    CREATE UNIQUE INDEX CUSTOMERS_PK
    ON CUSTOMERS (CUSTOMER_ID);
    ALTER TABLE CUSTOMERS
    ADD (CONSTRAINT CUSTOMERS_PK
    PRIMARY KEY (CUSTOMER_ID));
    ALTER TABLE CUSTOMERS
    ADD (CONSTRAINT CUSTOMERS_ACCOUNT_MANAGER_FK
    FOREIGN KEY (ACCOUNT_MGR_ID)
    REFERENCES EMPLOYEES(EMPLOYEE_ID)
    ON DELETE SET NULL);
    INSERT INTO customers VALUES (
    101,'Constantin','Welles',
    CUST_ADDRESS_TYP('514 SUPERIOR ST','46901','KOKOMO','IN','US'),
    '+1 317 123 4104','us','AMERICA',100,'[email protected]',null);
    INSERT INTO customers VALUES (
    102,'Mary','Doe',
    CUST_ADDRESS_TYP('514 SUPERIOR ST','46901','KOKOMO','IN','US'),
    '+1 317 123 4104','us','AMERICA',100,'[email protected]',null);
    INSERT INTO customers VALUES (
    103,'Marty','Dill',
    CUST_ADDRESS_TYP('514 SUPERIOR ST','46901','KOKOMO','IN','US'),
    '+1 317 123 4104','us','AMERICA',100,'[email protected]',null);
    INSERT INTO customers VALUES (
    104,'Bill','Smith',
    CUST_ADDRESS_TYP('514 SUPERIOR ST','46901','KOKOMO','IN','US'),
    '+1 317 123 4104','us','AMERICA',100,'[email protected]',null);
    COMMIT;
    CREATE SEQUENCE CUSTOMERS_SEQ
    START WITH 982
    INCREMENT BY 1
    NOCACHE
    NOCYCLE;
    CREATE TABLE DEPARTMENTS
    (DEPARTMENT_ID NUMBER(4),
    DEPARTMENT_NAME VARCHAR(30)
    CONSTRAINT DEPT_NAME_NN NOT NULL,
    MANAGER_ID NUMBER(6),
    LOCATION_ID NUMBER(4));
    CREATE UNIQUE INDEX DEPT_ID_PK
    ON DEPARTMENTS (DEPARTMENT_ID);
    ALTER TABLE DEPARTMENTS
    ADD (CONSTRAINT DEPT_ID_PK
    PRIMARY KEY (DEPARTMENT_ID));
    CREATE SEQUENCE DEPARTMENTS_SEQ
    START WITH 280
    INCREMENT BY 1
    MAXVALUE 9990
    NOCACHE
    NOCYCLE;
    CREATE TABLE EMPLOYEES
    (EMPLOYEE_ID NUMBER(6),
    LAST_NAME VARCHAR2(25)
    CONSTRAINT EMP_LAST_NAME_NN NOT NULL,
    FIRST_NAME VARCHAR2(20),
    EMAIL VARCHAR2(25)
    CONSTRAINT EMP_EMAIL_NN NOT NULL,
    PHONE_NUMBER VARCHAR2(20),
    HITE_DATE DATE
    CONSTRAINT EMP_HIRE_DATE_NN NOT NULL,
    MANAGER_ID NUMBER(6),
    DEPARTMENT_ID NUMBER(4),
    SALARY NUMBER(8,2),
    COMMISSION_PCT NUMBER(2,2),
    CONSTRAINT EMP_SALARY_MIN
    CHECK (SALARY > 0),
    CONSTRAINT EMP_EMAIL_UK
    UNIQUE (EMAIL));
    CREATE UNIQUE INDEX EMP_EMP_ID_PK
    ON EMPLOYEES (EMPLOYEE_ID);
    ALTER TABLE EMPLOYEES
    ADD (CONSTRAINT EMP_EMP_ID_PK
    PRIMARY KEY (EMPLOYEE_ID),
    CONSTRAINT EMP_DEPT_FK
    FOREIGN KEY (DEPARTMENT_ID)
    REFERENCES DEPARTMENTS,
    CONSTRAINT EMP_JOB_FK
    FOREIGN KEY (JOB_ID)
    REFERENCES JOBS (JOB_ID),
    CONSTRAINT EMP_MANAGER_FK
    FOREIGN KEY (MANAGER_ID)
    REFERENCES EMPLOYEES);
    ALTER TABLE DEPARTMENTS
    ADD (CONSTRAINT DEPT_MGR_FK
    FOREIGN KEY (MANAGER_ID)
    REFERENCES EMPLOYEES (EMPLOYEE_ID));
    CREATE SEQUENCE EMPLOYEES_SEQ
    START WITH 200
    INCREMENT BY 1
    NOCACHE
    NOCYCLE;
    CREATE TABLE INVENTORIES
    (PRODUCT_ID NUMBER(6),
    WAREHOUSE_ID NUMBER(3)
    CONSTRAINT INVENTORY_WAREHOUSE_ID_NN NOT NULL,
    QUANTITY_ON_HAND NUMBER(8)
    CONSTRAINT INVENTORY_QOH_NN NOT NULL,
    CONSTRAINT INVENTORY_PK
    PRIMARY KEY (PRODUCT_ID,WAREHOUSE_ID));
    ALTER_TABLE INVENTORIES
    ADD (CONSTRAINT INVENTORIES_WAREHOUSES_PK
    FOREIGN KEY (WAREHOUSE_ID)
    REFERENCES WAREHOUSES (WAREHOUSE_ID)
    ENABLE NOVALIDATE);
    ALTER TABLE INVENTORIES
    ADD (CONSTRAINT INVENTORIES_PRODUCT_ID_FK
    FOREIGN KEY (PRODUCT_ID)
    REFERENCES PRODUCT_INFORMATION (PRODUCT_ID));
    CREATE TABLE PRODUCT_INFORMATION
    (PRODUCT_ID NUMBER(6),
    PRODUCT_NAME VARCHAR2(50),
    PRODUCT_DESCRIPTION VARCHAR2(2000),
    CATEGORY_ID NIMBER(2),
    WEIGHT_CLASS NUMBER(1),
    WARRANTY_PERIOD NUMBER(5),
    SUPPLIER_ID NUMBER(6),
    PRODUCT_STATUS VARCHAR2(20),
    LIST_PRICE NUMBER(8,2),
    MIN_PRICE NUMBER(8,2),
    CATALOG_URL VARCHAR2(20),
    CONSTRAINT PRODUCT_STATUS_LOV
    CHECK PRODUCT_STATUS IN ('ORDERABLE',
    'PLANNED','DEVELOPMENT','OBSOLETE')));
    ALTER TABLE PRODUCT_INFORMATION
    ADD ( CONSTRAINT PRODUCT_INFORMATION_PK PRIMARY KEY (PRODUCT_ID));
    CREATE TABLE PRODUCT_DESCRIPTIONS
    (PRODUCT_ID NUMBER(6),
    LANGUAGE_ID VARCHAR2(3),
    TRANSLATED_NAME NVARCHAR2(50)
    CONSTRAINT TRANSLATED_NAME_NN NOT NULL,
    TRANSLATED_DESCRIPTION NVARCHAR2(2000)
    CONSTRATINT TRANSLATED_DESC_NN NOT NULL);
    CREATE UNIQUE INDEX PRD_DESC_PK
    ON PRODUCT_DESCRIPTIONS(PRODUCT_ID,LANGUAGE_ID);
    ALTER TABLE PRODUCT_DESCRIPTIONS
    ADD (CONSTRAINT PRODUCT_DESCRIPTIONS_PK
    PRIMARY KEY (PRODUCT_ID, LANGUAGE_ID);
    CREATE OR REPLACE VIEW PRODUCTS AS
    SELECT I.PRODUCT_ID,
    D.LANGUAGE_ID,
    CASE WHEN D.LANGUAGE_ID IS NOT NULL
    THEN D.TRANSLATED_NAME
    ELSE TRANSLATE(I.PRODUCT_NAME USING NCHAR_CS)
    END AS PRODUCT_NAME,
    I.CATEGORY_ID,
    CASE WHEN D.LANGUAGE_ID IS NOT NULL
    THEN D.TRANSLATED_DESCRIPTION
    ELSE TRANSLATE(I.PRODUCT_DESCRIPTION USING NCHAR_CS)
    END AS PRODUCT_DESCRIPTION,
    I.WEIGHT_CLASS,
    I.WARRANTY_PERIOD,
    I.SUPPLIER_ID,
    I.PRODUCT_STATUS,
    I.LIST_PRICE,
    I.MIN_PRICE,
    I.CATALOG_URL
    FROM PRODUCT_INFORMATION I, PRODUCT_DESCRIPTIONS D
    WHERE D.PRODUCT_ID(+) = I.PRODUCT_ID
    AND D.LANGUAGE_ID(+) = SYS_CONTEXT('USERENV','LANG');
    CREATE TABLE ORDER_ITEMS
    (ORDER_ID NUMBER(12),
    LINE_ITEM_ID NUMBER(3) NOT NULL,
    PRODUCT_ID NUMBER(6) NOT NULL,
    UNIT_PRICE NUMBER(8,2),
    QUANTITY NUMBER(6));
    CREATE UNIQUE INDEX ORDER_ITEMS_PK
    ON ORDER_ITEMS (ORDER_ID, LINE_ITEM_ID);
    CREATE UNIQUE INDEX ORDER_ITEMS_UK
    ON ORDER_ITEMS (ORDER_ID, PRODUCT_ID);
    ALTER TABLE ORDER_ITEMS
    ADD (CONSTRAINT ORDER_ITEMS_PK
    PRIMARY KEY (ORDER_ID,LINE_ITEM_ID));
    ALTER TABLE ORDER_ITEMS
    ADD (CONSTRAINT ORDER_ITEMS_ORDER_ID_FK
    FOREIGN KEY (ORDER_ID)
    REFERENCES ORDERS (ORDER_ID)
    ON DELETE CASCADE ENABLE NOVALIDATE);
    ALTER TABLE ORDER_ITEMS
    ADD (CONSTRAINT ORDER_ITEMS_PRODUCT_ID_FK
    FOREIGN KEY (PRODUCT_ID)
    REFERENCES PRODUCT_INFORMATION(PRODUCT_ID));
    CREATE OR REPLACE TRIGGER INSERT_OLD_LINE
    BEFORE INSERT ON ORDER_ITEMS
    FOR EACH ROW
    DECLARE
    NEW_LINE NUMBER;
    BEGIN
    SELECT (NVL(MAX(LINE_ITEM_ID),0)+1) INTO NEW_LINE
    FROM ORDER_ITEMS
    WHERE ORDER_ID = :NEW.ORDER_ID;
    :NEW.LINE_ITEM_ID := NEW_LINE;
    END;
    CREATE TABLE ORDERS
    (ORDER_ID NUMBER(12),
    CUSTOMER_ID NUMBER(6)
    CONSTRAINT ORDER_CUSTOMER_ID_NN NOT NULL,
    ORDER_DATE DATE
    CONSTRAINT ORDER_DATE_NN NOT NULL,
    ORDER_MODE VARCHAR2(8),
    SALES_REP_ID NUMBER(6),
    ORDER_TOTAL NUMBER(8,2),
    ORDER_STATUS NUMBER(2),
    PROMOTION_ID NUMBER(6),
    CONSTRAINT ORDER_MODE_LOV CHECK (ORDER_MODE IN('DIRECT','ONLINE')),
    CONSTRAINT ORDER_TOTAL_MIN CHECK (ORDER_TOTAL >= 0));
    CREATE UNIQUE INDEX ORDER_PK
    ON ORDERS (ORDER_ID);
    ALTER TABLE ORDERS
    ADD (CONSTRAINT ORDER_PK
    PRIMARY KEY (ORDER_ID));
    ALTER TABLE ORDERS
    ADD (CONSTRAINT ORDERS_SALES_REP_FK
    FOREIGN KEY (SALES_REP_ID)
    REFERENCES EMPLOYEES(EMPLOYEE_ID)
    ON DELETE SET NULL);
    ALTER TABLE ORDERS
    ADD (CONSTRAINT ORDERS_CUSTOMER_ID_FK
    FOREIGN KEY (CUSTOMER_ID)
    REFERENCES CUSTOMERS(CUSTOMER_ID)
    ON DELETE SET NULL);
    INSERT INTO DEPARTMENTS VALUES (
    100, 'Finance', 108,1700);
    INSERT INTO DEPARTMENTS VALUES (
    80, 'Sales', 145,2500);
    INSERT INTO DEPARTMENTS VALUES (
    20, 'Marketing', 201, 1800);
    INSERT INTO DEPARTMENTS VALUES (
    40, 'Human Resources', 203,2400);
    INSERT INTO DEPARTMENTS VALUES (
    90, 'Executive', 100,1700);
    INSERT INTO DEPARTMENTS VALUES (
    110, 'Accounting', 205,1700);
    INSERT INTO DEPARTMENTS VALUES (
    50, 'Shipping', 121,1500);
    INSERT INTO DEPARTMENTS VALUES (
    30, 'Purchasing', 114,1700);
    INSERT INTO DEPARTMENTS VALUES (
    60, 'IT', 103,1400);
    INSERT INTO DEPARTMENTS VALUES (
    170, 'Manufacturing', NULL,1700);
    INSERT INTO DEPARTMENTS VALUES (
    200, 'Operations', null,1700);
    INSERT INTO DEPARTMENTS VALUES (
    10, 'Administration', 200, 1700);
    COMMIT;
    INSERT INTO EMPLOYEES VALUES (
    1, 'Velasquez', 'Carmen', '[email protected]',NULL,
    to_date('03-MAR-90 8:30', 'dd-mon-yy hh24:mi'), NULL,
    90, 2500, NULL);
    INSERT INTO EMPLOYEES VALUES (
    2, 'Ngao', 'LaDoris', '[email protected]',NULL,
    '08-MAR-90', 1,
    20, 1450, NULL);
    INSERT INTO EMPLOYEES VALUES (
    3, 'Nagayama', 'Midori', '[email protected]',NULL,
    '17-JUN-91', 1,
    31, 1400, NULL);
    INSERT INTO EMPLOYEES VALUES (
    4, 'Quick-To-See', 'Mark', '[email protected]',NULL,
    '07-APR-90', 1,
    10, 1450, NULL);
    INSERT INTO EMPLOYEES VALUES (
    5, 'Ropeburn', 'Audry', '[email protected]',NULL,
    '04-MAR-90', 1,
    50, 1550, NULL);
    INSERT INTO EMPLOYEES VALUES (
    6, 'Urguhart', 'Molly', '[email protected]',NULL,
    '18-JAN-91', NULL, 2,
    40, 1200, NULL);
    INSERT INTO EMPLOYEES VALUES (
    7, 'Menchu', 'Roberta', '[email protected]',NULL,
    '14-MAY-90', 2,
    40, 1250, NULL);
    INSERT INTO EMPLOYEES VALUES (
    8, 'Biri', 'Ben', '[email protected]',NULL,
    '07-APR-90', 2,
    43, 1100, NULL);
    INSERT INTO EMPLOYEES VALUES (
    9, 'Catchpole', 'Antoinette', '[email protected]',NULL,
    '09-FEB-92', 2,
    80, 1300, NULL);
    INSERT INTO EMPLOYEES VALUES (
    10, 'Havel', 'Marta', '[email protected]',NULL,
    '27-FEB-91', 2,
    80, 1307, NULL);
    INSERT INTO EMPLOYEES VALUES (
    11, 'Magee', 'Colin', '[email protected]',NULL,
    '14-MAY-90', 3,
    80, 1400, 10);
    INSERT INTO EMPLOYEES VALUES (
    12, 'Giljum', 'Henry', '[email protected]',NULL,
    '18-JAN-92', 3,
    50, 1490, 12.5);
    INSERT INTO EMPLOYEES VALUES (
    13, 'Sedeghi', 'Yasmin', '[email protected]',NULL,
    '18-FEB-91', 3,
    200, 1515, 10);
    INSERT INTO EMPLOYEES VALUES (
    14, 'Nguyen', 'Mai', '[email protected]',NULL,
    '22-JAN-92', 3,
    200, 1525, 15);
    INSERT INTO EMPLOYEES VALUES (
    15, 'Dumas', 'Andre', '[email protected]',NULL,
    '09-OCT-91', 3,
    200, 1450, 17.5);
    INSERT INTO EMPLOYEES VALUES (
    16, 'Maduro', 'Elena', '[email protected]',NULL,
    '07-FEB-92', 6,
    61, 1400, NULL);
    INSERT INTO EMPLOYEES VALUES (
    17, 'Smith', 'George', '[email protected]',NULL,
    '08-MAR-90', 6,
    50, 940, NULL);
    INSERT INTO EMPLOYEES VALUES (
    18, 'Nozaki', 'Akira', '[email protected]',NULL,
    '09-FEB-91', 7,
    1102, 1200, NULL);
    INSERT INTO EMPLOYEES VALUES (
    19, 'Patel', 'Vikram', '[email protected]',NULL,
    '06-AUG-91', 7,
    110, 795, NULL);
    INSERT INTO EMPLOYEES VALUES (
    20, 'Newman', 'Chad', '[email protected]',NULL,
    '21-JUL-91', 8,
    10, 750, NULL);
    INSERT INTO EMPLOYEES VALUES (
    21, 'Markarian', 'Alexander', '[email protected]',NULL,
    '26-MAY-91', 8,
    20, 850, NULL);
    INSERT INTO EMPLOYEES VALUES (
    22, 'Chang', 'Eddie', '[email protected]',NULL,
    '30-NOV-90', 9,
    40, 800, NULL);
    INSERT INTO EMPLOYEES VALUES (
    23, 'Patel', 'Radha', '[email protected]',NULL,
    '17-OCT-90', 9,
    20, 795, NULL);
    INSERT INTO EMPLOYEES VALUES (
    24, 'Dancs', 'Bela', '[email protected]',NULL,
    '17-MAR-91', 10,
    50, 860, NULL);
    INSERT INTO EMPLOYEES VALUES (
    25, 'Schwartz', 'Sylvie', '[email protected]',NULL,
    '09-MAY-91', 10,
    170, 1100, NULL);
    COMMIT;
    INSERT INTO INVENTORIES VALUES (
    10011, 101, 650);
    INSERT INTO INVENTORIES VALUES (
    10012, 101, 600);
    INSERT INTO INVENTORIES VALUES (
    10013, 101, 400);
    INSERT INTO INVENTORIES VALUES (
    10021, 101,250);
    INSERT INTO INVENTORIES VALUES (
    10022, 101,115);
    INSERT INTO INVENTORIES VALUES (
    10023, 101,78);
    INSERT INTO INVENTORIES VALUES (
    20106, 101);
    INSERT INTO INVENTORIES VALUES (
    20108, 101,852);
    INSERT INTO INVENTORIES VALUES (
    20201, 101,1258);
    INSERT INTO INVENTORIES VALUES (
    20510, 101, 1389);
    INSERT INTO INVENTORIES VALUES (
    20512, 101, 850);
    INSERT INTO INVENTORIES VALUES (
    30321, 101, 2000);
    INSERT INTO INVENTORIES VALUES (
    30326, 101, 2100);
    INSERT INTO INVENTORIES VALUES (
    30421, 101, 1822);
    INSERT INTO INVENTORIES VALUES (
    30426, 101, 2250);
    INSERT INTO INVENTORIES VALUES (
    30433, 101, 650);
    INSERT INTO INVENTORIES VALUES (
    32779, 101, 2120);
    INSERT INTO INVENTORIES VALUES (
    32861, 101, 505);
    INSERT INTO INVENTORIES VALUES (
    40421, 101, 578);
    INSERT INTO INVENTORIES VALUES (
    40422, 101, 0);
    INSERT INTO INVENTORIES VALUES (
    41010, 101, 250);
    INSERT INTO INVENTORIES VALUES (
    41020, 101, 471);
    INSERT INTO INVENTORIES VALUES (
    41050, 101, 501);
    INSERT INTO INVENTORIES VALUES (
    41080, 101, 400);
    INSERT INTO INVENTORIES VALUES (
    41100, 101, 350);
    INSERT INTO INVENTORIES VALUES (
    50169, 101, 2530);
    INSERT INTO INVENTORIES VALUES (
    50273, 101, 233);
    INSERT INTO INVENTORIES VALUES (
    50417, 101, 518);
    INSERT INTO INVENTORIES VALUES (
    50418, 101, 244);
    INSERT INTO INVENTORIES VALUES (
    50419, 101, 230);
    INSERT INTO INVENTORIES VALUES (
    50530, 101, 669);
    INSERT INTO INVENTORIES VALUES (
    50532, 101, 0);
    INSERT INTO INVENTORIES VALUES (
    50536, 101, 173);
    INSERT INTO INVENTORIES VALUES (
    20106, 201, 220);
    INSERT INTO INVENTORIES VALUES (
    20108, 201, 166);
    INSERT INTO INVENTORIES VALUES (
    20201, 201, 320);
    INSERT INTO INVENTORIES VALUES (
    20510, 201, 175);
    INSERT INTO INVENTORIES VALUES (
    20512, 201, 162);
    INSERT INTO INVENTORIES VALUES (
    30321, 201, 96);
    INSERT INTO INVENTORIES VALUES (
    30326, 201, 147);
    INSERT INTO INVENTORIES VALUES (
    30421, 201, 102);
    INSERT INTO INVENTORIES VALUES (
    30426, 201, 200);
    INSERT INTO INVENTORIES VALUES (
    30433, 201, 130);
    INSERT INTO INVENTORIES VALUES (
    32779, 201, 180);
    INSERT INTO INVENTORIES VALUES (
    32861, 201, 132);
    INSERT INTO INVENTORIES VALUES (
    50169, 201, 225);
    INSERT INTO INVENTORIES VALUES (
    50273, 201, 75);
    INSERT INTO INVENTORIES VALUES (
    50417, 201, 82);
    INSERT INTO INVENTORIES VALUES (
    50418, 201, 98);
    INSERT INTO INVENTORIES VALUES (
    50419, 201, 77);
    INSERT INTO INVENTORIES VALUES (
    50530, 201, 62L);
    INSERT INTO INVENTORIES VALUES (
    50532, 201, 67);
    INSERT INTO INVENTORIES VALUES (
    50536, 201, 97);
    INSERT INTO INVENTORIES VALUES (
    20510, 301, 69);
    INSERT INTO INVENTORIES VALUES (
    20512, 301, 28);
    INSERT INTO INVENTORIES VALUES (
    30321, 301, 85);
    INSERT INTO INVENTORIES VALUES (
    30421, 301, 102);
    INSERT INTO INVENTORIES VALUES (
    30433, 301, 35);
    INSERT INTO INVENTORIES VALUES (
    32779, 301, 102);
    INSERT INTO INVENTORIES VALUES (
    32861, 301, 57);
    INSERT INTO INVENTORIES VALUES (
    40421, 301, 70);
    INSERT INTO INVENTORIES VALUES (
    40422, 301, 65);
    INSERT INTO INVENTORIES VALUES (
    41010, 301, 59);
    INSERT INTO INVENTORIES VALUES (
    41020, 301, 61);
    INSERT INTO INVENTORIES VALUES (
    41050, 301, 49);
    INSERT INTO INVENTORIES VALUES (
    41080, 301, 50);
    INSERT INTO INVENTORIES VALUES (
    41100, 301, 42);
    INSERT INTO INVENTORIES VALUES (
    20510, 401, 88);
    INSERT INTO INVENTORIES VALUES (
    20512, 401, 75);
    INSERT INTO INVENTORIES VALUES (
    30321, 401, 102);
    INSERT INTO INVENTORIES VALUES (
    30326, 401, 113);
    INSERT INTO INVENTORIES VALUES (
    30421, 401, 85);
    INSERT INTO INVENTORIES VALUES (
    30426, 401, 135);
    INSERT INTO INVENTORIES VALUES (
    30433, 401, 0);
    INSERT INTO INVENTORIES VALUES (
    32779, 401, 135);
    INSERT INTO INVENTORIES VALUES (
    32861, 401, 250);
    INSERT INTO INVENTORIES VALUES (
    40421, 401, 47);
    INSERT INTO INVENTORIES VALUES (
    40422, 401, 50);
    INSERT INTO INVENTORIES VALUES (
    41010, 401, 80);
    INSERT INTO INVENTORIES VALUES (
    41020, 401, 91);
    INSERT INTO INVENTORIES VALUES (
    41050, 401, 169);
    INSERT INTO INVENTORIES VALUES (
    41080, 401, 100);
    INSERT INTO INVENTORIES VALUES (
    41100, 401, 75);
    INSERT INTO INVENTORIES VALUES (
    50169, 401, 240);
    INSERT INTO INVENTORIES VALUES (
    50273, 401, 224);
    INSERT INTO INVENTORIES VALUES (
    50417, 401, 130);
    INSERT INTO INVENTORIES VALUES (
    50418, 401, 156);
    INSERT INTO INVENTORIES VALUES (
    50419, 401, 151);
    INSERT INTO INVENTORIES VALUES (
    50530, 401, 119);
    INSERT INTO INVENTORIES VALUES (
    50532, 401, 233);
    INSERT INTO INVENTORIES VALUES (
    50536, 401, 138);
    INSERT INTO INVENTORIES VALUES (
    10012, 10501, 300);
    INSERT INTO INVENTORIES VALUES (
    10013, 10501, 314);
    INSERT INTO INVENTORIES VALUES (
    10022, 10501, 502);
    INSERT INTO INVENTORIES VALUES (
    10023, 10501, 500);
    INSERT INTO INVENTORIES VALUES (
    20106, 10501, 150);
    INSERT INTO INVENTORIES VALUES (
    20108, 10501, 222);
    INSERT INTO INVENTORIES VALUES (
    20201, 10501, 275);
    INSERT INTO INVENTORIES VALUES (
    20510, 10501, 57);
    INSERT INTO INVENTORIES VALUES (
    20512, 10501, 62);
    INSERT INTO INVENTORIES VALUES (
    30321, 10501, 194);
    INSERT INTO INVENTORIES VALUES (
    30326, 10501, 277);
    INSERT INTO INVENTORIES VALUES (
    30421, 10501, 190);
    INSERT INTO INVENTORIES VALUES (
    30426, 10501, 423);
    INSERT INTO INVENTORIES VALUES (
    30433, 10501, 273);
    INSERT INTO INVENTORIES VALUES (
    32779, 10501, 280);
    INSERT INTO INVENTORIES VALUES (
    32861, 10501, 288);
    INSERT INTO INVENTORIES VALUES (
    40421, 10501, 97);
    INSERT INTO INVENTORIES VALUES (
    40422, 10501, 90);
    INSERT INTO INVENTORIES VALUES (
    41010, 10501, 151);
    INSERT INTO INVENTORIES VALUES (
    41020, 10501, 224);
    INSERT INTO INVENTORIES VALUES (
    41050, 10501, 157);
    INSERT INTO INVENTORIES VALUES (
    41080, 10501, 159);
    INSERT INTO INVENTORIES VALUES (
    41100, 10501, 141);
    COMMIT;
    INSERT INTO PRODUCT_INFORMATION (product_id,product_name,product_description,
    category_id,supplier_id,list_price,catalog_url)
    VALUES
    10011, 'Bunny Boot',
    'Beginner''s ski boot',
    518, 1001,
    150, NULL);
    INSERT INTO PRODUCT_INFORMATION (product_id,product_name,product_description,
    category_id,supplier_id,list_price,catalog_url)
    VALUES (
    10012, 'Ace Ski Boot',
    'Intermediate ski boot',
    519, 1002,
    200, NULL);
    INSERT INTO PRODUCT_INFORMATION (product_id,product_name,product_description,
    category_id,supplier_id,list_price,catalog_url)
    VALUES (
    10013, 'Pro Ski Boot',
    'Advanced ski boot',
    520, 1003,
    410, NULL);
    INSERT INTO PRODUCT_INFORMATION (product_id,product_name,product_description,
    category_id,supplier_id,list_price,catalog_url)
    VALUES (
    10021, 'Bunny Ski Pole',
    'Beginner''s ski pole',
    528, 1011,
    16.25, NULL);
    INSERT INTO PRODUCT_INFORMATION (product_id,product_name,product_description,
    category_id,supplier_id,list_price,catalog_url)
    VALUES (
    10022, 'Ace Ski Pole',
    'Intermediate ski pole',
    529, 1012,
    21.95, NULL);
    INSERT INTO PRODUCT_INFORMATION (product_id,product_name,product_description,
    category_id,supplier_id,list_price,catalog_url)
    VALUES (
    10023, 'Pro Ski Pole',
    'Advanced ski pole',
    530, 1013,
    40.95, NULL);
    INSERT INTO PRODUCT_INFORMATION (product_id,product_name,product_description,
    category_id,supplier_id,list_price,catalog_url)
    VALUES (
    20106, 'Junior Soccer Ball',
    'Junior soccer ball',
    613, NULL,
    11, NULL);
    INSERT INTO PRODUCT_INFORMATION (product_id,product_name,product_description,
    category_id,supplier_id,list_price,catalog_url)
    VALUES (
    20108, 'World Cup Soccer Ball',
    'World cup soccer ball',
    615, NULL,
    28, NULL);
    INSERT INTO PRODUCT_INFORMATION (product_id,product_name,product_description,
    category_id,supplier_id,list_price,catalog_url)
    VALUES (
    20201, 'World Cup Net',
    'World cup net',
    708, NULL,
    123, NULL);
    INSERT INTO PRODUCT_INFORMATION (product_id,product_name,product_description,
    category_id,supplier_id,list_price,catalog_url)
    VALUES (
    20510, 'Black Hawk Knee Pads',
    'Knee pads, pair',
    1017, NULL,
    9, NULL);
    INSERT INTO PRODUCT_INFORMATION (product_id,product_name,product_description,
    category_id,supplier_id,list_price,catalog_url)
    VALUES (
    20512, 'Black Hawk Elbow Pads',
    'Elbow pads, pair',
    1019, NULL,
    8, NULL);
    INSERT INTO PRODUCT_INFORMATION (product_id,product_name,product_description,
    category_id,supplier_id,list_price,catalog_url)
    VALUES (
    30321, 'Grand Prix Bicycle',
    'Road bicycle',
    828, 1291,
    1669, NULL);
    INSERT INTO PRODUCT_INFORMATION (product_id,product_name,product_description,
    category_id,supplier_id,list_price,catalog_url)
    VALUES (
    30326, 'Himalaya Bicycle',
    'Mountain bicycle',
    833, 1296,
    582, NULL);
    INSERT INTO PRODUCT_INFORMATION (product_id,product_name,product_description,
    category_id,supplier_id,list_price,catalog_url)
    VALUES (
    30421, 'Grand Prix Bicycle Tires',
    'Road bicycle tires',
    927, NULL,
    16, NULL);
    INSERT INTO PRODUCT_INFORMATION (product_id,product_name,product_description,
    category_id,supplier_id,list_price,catalog_url)
    VALUES (
    30426, 'Himalaya Tires',
    'Mountain bicycle tires',
    933, NULL,
    18.25, NULL);
    INSERT INTO PRODUCT_INFORMATION (product_id,product_name,product_description,
    category_id,supplier_id,list_price,catalog_url)
    VALUES (
    30433, 'New Air Pump',
    'Tire pump',
    940, NULL,
    20, NULL);
    INSERT INTO PRODUCT_INFORMATION (product_id,product_name,product_description,
    category_id,supplier_id,list_price,catalog_url)
    VALUES (
    32779, 'Slaker Water Bottle',
    'Water bottle',
    1286, NULL,
    7, NULL);
    INSERT INTO PRODUCT_INFORMATION (product_id,product_name,product_description,
    category_id,supplier_id,list_price,catalog_url)
    VALUES (
    32861, 'Safe-T Helmet',
    'Bicycle helmet',
    1368, 1829,
    60, NULL);
    INSERT INTO PRODUCT_INFORMATION (product_id,product_name,product_description,
    category_id,supplier_id,list_price,catalog_url)
    VALUES (
    40421, 'Alexeyer Pro Lifting Bar',
    'Straight bar',
    928, 1381,
    65, NULL);
    INSERT INTO PRODUCT_INFORMATION (product_id,product_name,product_description,
    category_id,supplier_id,list_price,catalog_url)
    VALUES (
    40422, 'Pro Curling Bar',
    'Curling bar',
    929, 1382,
    50, NULL);
    INSERT INTO PRODUCT_INFORMATION (product_id,product_name,product_description,
    category_id,supplier_id,list_price,catalog_url)
    VALUES (
    41010, 'Prostar 10 Pound Weight',
    'Ten pound weight',
    517, NULL,
    8, NULL);
    INSERT INTO PRODUCT_INFORMATION (product_id,product_name,product_description,
    category_id,supplier_id,list_price,catalog_url)
    VALUES (
    41020, 'Prostar 20 Pound Weight',
    'Twenty pound weight',
    527, NULL,
    12, NULL);
    INSERT INTO PRODUCT_INFORMATION (product_id,product_name,product_description,
    category_id,supplier_id,list_price,catalog_url)
    VALUES (
    41050, 'Prostar 50 Pound Weight',
    'Fifty pound weight',
    557, NULL,
    25, NULL);
    INSERT INTO PRODUCT_INFORMATION (product_id,product_name,product_description,
    category_id,supplier_id,list_price,catalog_url)
    VALUES (
    41080, 'Prostar 80 Pound Weight',
    'Eighty pound weight',
    587, NULL,
    35, NULL);
    INSERT INTO PRODUCT_INFORMATION (product_id,product_name,product_description,
    category_id,supplier_id,list_price,catalog_url)
    VALUES (
    41100, 'Prostar 100 Pound Weight',
    'One hundred pound weight',
    607, NULL,
    45, NULL);
    INSERT INTO PRODUCT_INFORMATION (product_id,product_name,product_description,
    category_id,supplier_id,list_price,catalog_url)VALUES (
    50169, 'Major League Baseball',
    'Baseball',
    676, 1119,
    4.29, NULL);
    INSERT INTO PRODUCT_INFORMATION (product_id,product_name,product_description,
    category_id,supplier_id,list_price,catalog_url)VALUES (
    50273, 'Chapman Helmet',
    'Batting helmet',
    780, 1223,
    22.89, NULL);
    INSERT INTO PRODUCT_INFORMATION (product_id,product_name,product_description,
    category_id,supplier_id,list_price,catalog_url)
    VALUES (
    50417, 'Griffey Glove',
    'Outfielder''s glove',
    924, 1367,
    80, NULL);
    INSERT INTO PRODUCT_INFORMATION (product_id,product_name,product_description,
    category_id,supplier_id,list_price,catalog_url)
    VALUES (
    50418, 'Alomar Glove',
    'Infielder''s glove',
    925, 1368,
    75, NULL);
    INSERT INTO PRODUCT_INFORMATION (product_id,product_name,product_description,
    category_id,supplier_id,list_price,catalog_url)
    VALUES (
    50419, 'Steinbach Glove',
    'Catcher''s glove',
    926, 1369,
    80, NULL);
    INSERT INTO PRODUCT_INFORMATION (product_id,product_name,product_description,
    category_id,supplier_id,list_price,catalog_url)
    VALUES (
    50530, 'Cabrera Bat',
    'Thirty inch bat',
    1037, 1480,
    45, NULL);
    INSERT INTO PRODUCT_INFORMATION (product_id,product_name,product_description,
    category_id,supplier_id,list_price,catalog_url)
    VALUES (
    50532, 'Puckett Bat',
    'Thirty-two inch bat',
    1039, 1482,
    47, NULL);
    INSERT INTO PRODUCT_INFORMATION (product_id,product_name,product_description,
    category_id,supplier_id,list_price,catalog_url)
    VALUES (
    50536, 'Winfield Bat',
    'Thirty-six inch bat',
    1043, 1486,
    50, NULL);
    COMMIT;
    INSERT INTO ORDER_ITEMS VALUES (
    100, 1, 10011, 135, 500);
    INSERT INTO ORDER_ITEMS VALUES (
    100, 2, 10013, 380, 400);
    INSERT INTO ORDER_ITEMS VALUES (
    100, 3, 10021, 14, 500);
    INSERT INTO ORDER_ITEMS VALUES (
    100, 5, 30326, 582, 600);
    INSERT INTO ORDER_ITEMS VALUES (
    100, 7, 41010, 8, 250);
    INSERT INTO ORDER_ITEMS VALUES (
    100, 6, 30433, 20, 450);
    INSERT INTO ORDER_ITEMS VALUES (
    100, 4, 10023, 36, 400);
    INSERT INTO ORDER_ITEMS VALUES (
    101, 1, 30421, 16, 15);
    INSERT INTO ORDER_ITEMS VALUES (
    101, 3, 41010, 8, 20);
    INSERT INTO ORDER_ITEMS VALUES (
    101, 5, 50169, 4.29, 40);
    INSERT INTO ORDER_ITEMS VALUES (
    101, 6, 50417, 80, 27);
    INSERT INTO ORDER_ITEMS VALUES (
    101, 7, 50530, 45, 50);
    INSERT INTO ORDER_ITEMS VALUES (
    101, 4, 41100, 45, 35);
    INSERT INTO ORDER_ITEMS VALUES (
    101, 2, 40422, 50, 30);
    INSERT INTO ORDER_ITEMS VALUES (
    102, 1, 20108, 28, 100);
    INSERT INTO ORDER_ITEMS VALUES (
    102, 2, 20201, 123, 45);
    INSERT INTO ORDER_ITEMS VALUES (
    103, 1, 30433, 20, 15);
    INSERT INTO ORDER_ITEMS VALUES (
    103, 2, 32779, 7, 11);
    INSERT INTO ORDER_ITEMS VALUES (
    104, 1, 20510, 9, 7);
    INSERT INTO ORDER_ITEMS VALUES (
    104, 4, 30421, 16, 35);
    INSERT INTO ORDER_ITEMS VALUES (
    104, 2, 20512, 8, 12);
    INSERT INTO ORDER_ITEMS VALUES (
    104, 3, 30321, 1669, 19);
    INSERT INTO ORDER_ITEMS VALUES (
    105, 1, 50273, 22.89, 16);
    INSERT INTO ORDER_ITEMS VALUES (
    105, 3, 50532, 47, 28);
    INSERT INTO ORDER_ITEMS VALUES (
    105, 2, 50419, 80, 133);
    INSERT INTO ORDER_ITEMS VALUES (
    106, 1, 20108, 28, 46);
    INSERT INTO ORDER_ITEMS VALUES (
    106, 4, 50273, 22.89, 75);
    INSERT INTO ORDER_ITEMS VALUES (
    106, 5, 50418, 75, 98);
    INSERT INTO ORDER_ITEMS VALUES (
    106, 6, 50419, 80, 27);
    INSERT INTO ORDER_ITEMS VALUES (
    106, 2, 20201, 123, 21);
    INSERT INTO ORDER_ITEMS VALUES (
    106, 3, 50169, 4.29, 125);
    INSERT INTO ORDER_ITEMS VALUES (
    107, 1, 20106, 11, 50);
    INSERT INTO ORDER_ITEMS VALUES (
    107, 3, 20201, 115, 130);
    INSERT INTO ORDER_ITEMS VALUES (
    107, 5, 30421, 16, 55);
    INSERT INTO ORDER_ITEMS VALUES (
    107, 4, 30321, 1669, 75);
    INSERT INTO ORDER_ITEMS VALUES (
    107, 2, 20108, 28, 22);
    INSERT INTO ORDER_ITEMS VALUES (
    108, 1, 20510, 9, 9);
    INSERT INTO ORDER_ITEMS VALUES (
    108, 6, 41080, 35, 50);
    INSERT INTO ORDER_ITEMS VALUES (
    108, 7, 41100, 45, 422);
    INSERT INTO ORDER_ITEMS VALUES (
    108, 5, 32861, 60, 57);
    INSERT INTO ORDER_ITEMS VALUES (
    108, 2, 20512, 8, 18);
    INSERT INTO ORDER_ITEMS VALUES (
    108, 4, 32779, 7, 60);
    INSERT INTO ORDER_ITEMS VALUES (
    108, 3, 30321, 1669, 85);
    INSERT INTO ORDER_ITEMS VALUES (
    109, 1, 10011, 140, 150);
    INSERT INTO ORDER_ITEMS VALUES (
    109, 5, 30426, 18.25, 500);
    INSERT INTO ORDER_ITEMS VALUES (
    109, 7, 50418, 75, 43);
    INSERT INTO ORDER_ITEMS VALUES (
    109, 6, 32861, 60, 50);
    INSERT INTO ORDER_ITEMS VALUES (
    109, 4, 30326, 582, 1500);
    INSERT INTO ORDER_ITEMS VALUES (
    109, 2, 10012, 175, 600);
    INSERT INTO ORDER_ITEMS VALUES (
    109, 3, 10022, 21.95, 300);
    INSERT INTO ORDER_ITEMS VALUES (
    110, 1, 50273, 22.89, 17);
    INSERT INTO ORDER_ITEMS VALUES (
    110, 2, 50536, 50, 23);
    INSERT INTO ORDER_ITEMS VALUES (
    111, 1, 40421, 65, 27);
    INSERT INTO ORDER_ITEMS VALUES (
    111, 2, 41080, 35, 29);
    INSERT INTO ORDER_ITEMS VALUES (
    97, 1, 20106, 9, 1000);
    INSERT INTO ORDER_ITEMS VALUES (
    97, 2, 30321, 1500, 50);
    INSERT INTO ORDER_ITEMS VALUES (
    98, 1, 40421, 85, 7);
    INSERT INTO ORDER_ITEMS VALUES (
    99, 1, 20510, 9, 18);
    INSERT INTO ORDER_ITEMS VALUES (
    99, 2, 20512, 8, 25);
    INSERT INTO ORDER_ITEMS VALUES (
    99, 3, 50417, 80, 53);
    INSERT INTO ORDER_ITEMS VALUES (
    99, 4, 50530, 45, 69);
    INSERT INTO ORDER_ITEMS VALUES (
    112, 1, 20106, 11, 50);
    COMMIT;
    INSERT INTO ORDERS VALUES (
    100, 104, '31-AUG-92', null,
    11, 601100, null, null);
    INSERT INTO ORDERS VALUES (
    101, 101, '31-AUG-92', null,
    14, 8056.6, null, null);
    INSERT INTO ORDERS VALUES (
    102, 102, '01-SEP-92', null,
    15, 8335, null, null);
    INSERT INTO ORDERS VALUES (
    103, 103, '02-SEP-92', null,
    15, 377, 'CASH', 'Y');
    INSERT INTO ORDERS VALUES (
    104, 101, '03-SEP-92', null,
    15, 32430, null, null);
    INSERT INTO ORDERS VALUES (
    105, 102, '04-SEP-92', null,
    11, 2722.24, null, null);
    INSERT INTO ORDERS VALUES (
    106, 103, '07-SEP-92', null,
    12, 15634, null, null);
    INSERT INTO ORDERS VALUES (
    107, 104, '07-SEP-92', null,
    15, 142171, null, null);
    INSERT INTO ORDERS VALUES (
    108, 101, '07-SEP-92', null,
    13, 149570, null, null);
    INSERT INTO ORDERS VALUES (
    109, 102, '08-SEP-92', null,
    11, 1020935, null, null);
    INSERT INTO ORDERS VALUES (
    110, 103, '09-SEP-92', null,
    11, 1539.13,null, null);
    INSERT INTO ORDERS VALUES (
    111, 104, '09-SEP-92', null,
    11, 2770, null, null);
    INSERT INTO ORDERS VALUES (
    97, 101, '28-AUG-92', null,
    12, 84000, null, null);
    INSERT INTO ORDERS VALUES (
    98, 102, '31-AUG-92', null,
    14, 595, null, null);
    INSERT INTO ORDERS VALUES (
    99, 103, '31-AUG-92', null,
    14, 7707, null, null);
    INSERT INTO ORDERS VALUES (
    112, 104, '31-AUG-92', null,
    12, 550, null, null);
    COMMIT;
    Good luck,
    Monica

  • Where to get ADF Sample Applications with Documentation.

    Hi All,
    I am new to ADF.I have followed oracle tutorials to learn ADF.
    Now I am looking for some sample applications with documentation so I can build some applications in ADF.I did one procurement application using following link.
    http://www.scribd.com/doc/13088674/Oracle-ADF-11g-Learning-Application-My-Procurement-Application
    Also I got one more application from Baig's Blog.But documentation is not there.
    http://baigsorcl.blogspot.com/2010/07/sample-code-quiz-application-in-oracle.html
    I will be very thankful if you provide me the documentation of Baig's application or some other applications with documentation.
    Regards,
    SHD

    Hi SHD,
    U can find some samples and their documentions here http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html
    But learning the basics u can go through the developer guide and some hands on Application
    Ref : http://www.oracle.com/technetwork/developer-tools/adf/overview/index.html
    U can start ur learning here http://www.oracle.com/technetwork/developer-tools/jdev/overview/jdeveloper-reviewrguide-086026.html
    Developer Guide : http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/toc.htm
    make use the links below
    http://www.oracle.com/technetwork/developer-tools/jdev/overview/index-100269.html#adf
    http://www.oracle.com/technetwork/developer-tools/jdev/index-087798.html
    http://www.oracle.com/technetwork/developer-tools/jdev/viewlet-097827.html#adf
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/adfinsider-093342.html#adf
    Regards,
    Suganth.G

  • Attn: Installing the Sample Applications from the ifs Development Kit

    There are a number of problems with the sample Applications included in the
    Developer's kit. These need to manually fixed in order to get the demos to work.
    #1: Solaris Only
    The install of the iFS Development Kit, replaces the existing adk.jar with a new
    one containing some additional classes. Unfortunately the install process does not
    set the correct privileges on the new version of adk.jar. Please ensure that the
    file $ORACLE_HOME/ifs/lib/adk.jar is world readable.
    Bug # 1304730
    This issue will be resolved on the next drop of the Oracle Internet File System
    development kit.
    #2: Generic
    There is a problem with the way in which the login.jsp establishes a connection to
    the repository. The current code makes incorrect assumptions about the name of the
    iFS Service and the schema password.
    The following changes are required.
    In order to connect to the repository 4 pieces of information are required.
    1. The iFS User Name
    2. The iFS User's password
    3. The properties file to be used
    4. The database password of the user who owns the iFS Schema
    The Login.jsp needs to be altered so that it requests these four arguments before
    attempting to establish a connection to the repository.
    (The current version only requests username and password).
    All four arguments need to be provided as arguments to the login method on the
    underlying JavaBean that the JSP invokes when it want to open a connection
    to the repository.
    ***************** HERE IS THE REVISED CODE FOR INSURANCE APPLICATIONS ************
    ********************************** LOGIN.JSP *************************************
    <%@ page import = "ifsdevkit.sampleapps.insurance.InsuranceLogin" %>
    <%@ page import = "oracle.ifs.adk.security.IfsHttpLogin" %>
    <html><head>
    <jsp:useBean id="inslogin" scope="session" class="ifsdevkit.sampleapps.insurance.InsuranceLogin" />
    <jsp:setProperty name="inslogin" property="*"/>
    <%
    String REDIRECT_PATH = "/public/examples/insuranceApp/claims";
    boolean loggedIn = false;
    if (inslogin.getSession() != null && inslogin.getResolver() != null)
    // Use existing insurance login
    loggedIn = true;
    else
    // No existing insurance login
    IfsHttpLogin login = (IfsHttpLogin) request.getSession(true).getValue("IfsHttpLogin");
    if (login != null && login.getSession() != null && login.getResolver() != null)
    // Use existing IfsHttpLogin login
    inslogin.init(login.getSession(), login.getResolver());
    loggedIn = true;
    if (!loggedIn)
    String username = request.getParameter("username");
    String password = request.getParameter("password");
    String serviceName = request.getParameter("serviceName");
    String schemaPassword = request.getParameter("schemaPassword");
    if (username != null && password != null &&
    !username.trim().equals("") && !password.trim().equals(""))
    // Login using username/password
    try
    if (serviceName == null &#0124; &#0124; serviceName.trim().equals(""))
    serviceName = "IfsDefault";
    inslogin.init(username, password, serviceName, schemaPassword);
    request.getSession(true).putValue("IfsHttpLogin", inslogin);
    loggedIn = true;
    catch (Exception e)
    %>
    <SCRIPT LANGUAGE="JavaScript1.2">
    alert("The username or Password was not valid, please try again.");
    </SCRIPT>
    <%
    if (loggedIn)
    // Redirect to the directory where the claim files reside
    response.sendRedirect(REDIRECT_PATH);
    else
    %>
    <title>Insurance Demo App Login</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body bgcolor="#FFFFFF">
    <form METHOD=POST NAME="loginform" ACTION="login.jsp">
    <table>
    <tr>
    <td><b>Username:</b></td>
    <td><input type="text" name="username" value=""></td>
    </tr>
    <tr>
    <td><b>Password:</b></td>
    <td><input type="password" name="password" value=""></td>
    & lt;/tr>
    <tr>
    <td><b>Service Name:</b></td>
    <td><input type="text" name="serviceName" value="IfsDefault"></td>
    </tr>
    <tr>
    <td><b>Schema Password:</b></td>
    <td><input type="password" name="schemaPassword" value=""></td>
    </tr>
    <tr>
    <td> </td>
    <td> </td>
    </tr>
    <tr>
    <td>
    <input type="submit" value="Log in">
    </td>
    <td>
    <input type="reset" value="Reset">
    </td>
    </tr>
    </table>
    </form>
    </body>
    </html>
    <% } %>
    *************************** END INSURANCE LOGIN.JSP ******************************
    This code has been changed so that it requests the four agruments that are required
    to connect to the repository and passes them to the login method on the underlying
    bean. Note that we have provided the complete source code to this file in order to
    make it simple to deploy the revised version of the code. Simply cut and paste this
    code into a new file called login.jsp. Copy the File into the iFS
    repository folder /ifs/jsp-bin/ifsdevkit/sampleapps/insurance.
    ****************************** INSURANCELOGIN.JAVA *******************************
    package ifsdevkit.sampleapps.insurance;
    * Copyright (c) 2000 Oracle Corporation. All rights reserved.
    import java.util.Locale;
    import javax.servlet.http.HttpSessionBindingEvent;
    import oracle.ifs.beans.DirectoryUser;
    import oracle.ifs.beans.FolderPathResolver;
    import oracle.ifs.beans.LibrarySession;
    import oracle.ifs.beans.LibraryService;
    import oracle.ifs.common.CleartextCredential;
    import oracle.ifs.common.ConnectOptions;
    import oracle.ifs.common.IfsException;
    import oracle.ifs.adk.security.IfsHttpLogin;
    * The login bean for the Insurance demo app.
    * <p>
    * This class provide the login info. The class implements the
    * <code>IfsHttpLogin</code> interface so it can share login data with other
    * login beans.
    * @author Edward Yu
    * @version 1.0
    * @see IfsHttpLogin
    public class InsuranceLogin implements IfsHttpLogin
    * The <code>LibrarySession</code>.
    private LibrarySession m_session;
    * The <code>FolderPathResolver</code>.
    private FolderPathResolver m_resolver;
    * Default constructor required by the jsp spec for the USEBEAN tag
    * @exception IfsException
    public InsuranceLogin()
    throws IfsException
    * Make a connection to iFS
    * @param username The username to be used for login.
    * @param password The password to be used for login.
    * @param serviceName The service name to be used for login.
    * @param schemaPassword The schema password to be used for login.
    * @exception IfsException if operation failed.
    public void init(String username, String password, String serviceName,
    String schemaPassword)
    throws IfsException
    LibraryService service = new LibraryService();
    CleartextCredential me = new CleartextCredential(username, password);
    ConnectOptions connection = new ConnectOptions();
    connection.setLocale(Locale.getDefault());
    connection.setServiceName(serviceName);
    connection.setServicePassword(schemaPassword);
    m_session = service.connect(me, connection);
    m_resolver = new FolderPathResolver(m_session);
    m_resolver.setRootFolder();
    DirectoryUser user = m_session.getDirectoryUser();
    if (user.isAdminEnabled())
    m_session.setAdministrationMode(true);
    * Initialize the login bean.
    * <p>
    * The default constructor does not set the necessary fields so it needs
    * to be set instantiation.
    * @param session The <code>LibrarySession</code> object.
    * @param resolver The <code>FolderPathResolver</code> object.
    public void init(LibrarySession session, FolderPathResolver resolver)
    m_session = session;
    m_resolver = resolver;
    * Return the login's session object.
    * @return The <code>LibrarySession</code> object.
    public LibrarySession getSession()
    return m_session;
    * Return the login's path resolver.
    * @return The <code>FolderPathResolver</code> object.
    public FolderPathResolver getResolver()
    return m_resolver;
    * Called when this object is bound to the HTTP session object.
    * @param event The event when the object is bound to the Http session.
    public void valueBound(HttpSessionBindingEvent event)
    // do nothing
    * Called when this object is unbound from the HTTP session object.
    * @param event The event when the object is unbound to the Http session.
    public void valueUnbound(HttpSessionBindingEvent event)
    m_resolver = null;
    try
    if (m_session != null)
    m_session.disconnect();
    catch (IfsException e)
    e.printStackTrace();
    finally
    m_session = null; // release the resources
    *****************************END INSURANCELOGIN.JAVA ******************************
    This code has been changed so that it accepts the four agruments that are required
    to connect to the repository and uses them to connect to the repository. Note that
    we have provided the complete source code to this file in order to make it simple
    to deploy the revised version of the code. Simply cut and paste this
    code into a new file called. Save the file on the native file system
    in a file called InsuranceLogin.java in the directory
    $ORACLE_HOME/ifs/ifsdevkit/sampleapps/insurance/
    *************** HERE IS THE REVISED CODE FOR WEB COMMAND APPLICATIONS ************
    ********************************** LOGIN.JSP *************************************
    <%@ page import = "ifsdevkit.sampleapps.webcommandapp.WebCommandLogin" %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta name="Author" content="Patricia Li">
    <title>Login</title>
    </head>
    <jsp:useBean id="wclogin" scope="session" class="ifsdevkit.sampleapps.webcommandapp.WebCommandLogin" />
    <jsp:setProperty name="wclogin" property="*"/>
    <%
    String REDIRECT_PATH = "/ifs/ifsdevkit/sampleapps/WebCommandApp/html/main.html";
    boolean loggedIn = false;
    if (wclogin.getSession() != null)
    // Use existing WebCommand login
    loggedIn = true;
    else
    String username = request.getParameter("username");
    String password = request.getParameter("password");
    String serviceName = request.getParameter("serviceName" );
    String schemaPassword = request.getParameter("schemaPassword");
    if (username != null && password != null)
    // Login to iFS
    try
    wclogin.init(username, password, serviceName, schemaPassword);
    request.getSession(true).putValue("IfsHttpLogin", wclogin);
    loggedIn = true;
    catch (Exception e)
    %>
    <SCRIPT LANGUAGE="JavaScript1.2">
    alert("The credentials are not valid; please try again.");
    </SCRIPT>
    <%
    if (loggedIn == true)
    // Go to main page...
    response.sendRedirect(REDIRECT_PATH);
    else
    %>
    <title>Web Command App Login</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body bgcolor="#FFFFFF">
    <h2>WebCommand Application Login</h2>
    <form METHOD=POST NAME="loginform" ACTION="login.jsp">
    <table>
    <tr>
    <td><b>Username:</b></td>
    <td><input type="text" name="username" value=""></td>
    </tr>
    <tr>
    <td><b>Password:</b></td>
    <td><input type="password" name="password" value=""></td>
    </tr>
    <tr>
    <td><b>Service Name:</b></td>
    <td><input type="text" name="serviceName" value="IfsDefault"></td>
    </tr>
    <tr>
    <td><b>Schema Password:</b></td>
    <td& gt;<input type="password" name="schemaPassword" value=""></td>
    </tr>
    <tr>
    <td> </td>
    <td> </td>
    </tr>
    <tr>
    <td>
    <input type="submit" value="Log in">
    </td>
    <td>
    <input type="reset" value="Reset">
    </td>
    </tr>
    </table>
    </form>
    </body>
    </html>
    <% } %>
    ************************* END WEB COMMAND LOGIN.JSP ******************************
    This code has been changed so that it requests the four agruments that are required
    to connect to the repository and passes them to the login method on the underlying
    bean. Note that we have provided the complete source code to this file in order to
    make it simple to deploy the revised version of the code. Simply cut and paste this
    code into a new file called login.jsp. Copy the File into the iFS repository folder
    /ifs/jsp-bin/ifsdevkit/sampleapps/WebCommandApp
    ****************************WEBCOMMANDLOGIN.JAVA**********************************
    package ifsdevkit.sampleapps.webcommandapp;
    import java.util.Locale;
    import oracle.ifs.beans.DirectoryUser;
    import oracle.ifs.beans.FolderPathResolver;
    import oracle.ifs.beans.LibrarySession;
    import oracle.ifs.beans.LibraryService;
    import oracle.ifs.common.CleartextCredential;
    import oracle.ifs.common.ConnectOptions;
    import oracle.ifs.common.IfsException;
    import oracle.ifs.adk.filesystem.IfsFileSystem;
    import oracle.ifs.adk.security.IfsHttpLogin;
    import javax.servlet.http.HttpSessionBindingEvent;
    * WebCommand application that illustrates the usage of the
    * File System API.
    * @version 1.0
    * @pub
    public class WebCommandLogin implements IfsHttpLogin
    private LibrarySession m_session; // Session
    private FolderPathResolver m_resolver; // Resolver
    private IfsFileSystem m_ifs; // File System object
    * Default constructor required by the jsp spec for the USEBEAN tag
    public WebCommandLogin()
    throws IfsException
    * Make a connection to iFS
    * @pub
    public void init(String username, String password, String serviceName,
    String schemaPassword)
    throws IfsException
    LibraryService service = new LibraryService();
    CleartextCredential cred = new CleartextCredential(username, password);
    ConnectOptions options = new ConnectOptions();
    options.setLocale(Locale.getDefault());
    options.setServiceName(serviceName);
    options.setServicePassword(schemaPassword);
    m_session = service.connect(cred, options);
    m_resolver = new FolderPathResolver(m_session);
    m_resolver.setRootFolder();
    m_ifs = new IfsFileSystem(m_session);
    DirectoryUser user = (DirectoryUser) m_session.getDirectoryUser();
    if (user.isAdminEnabled())
    m_session.setAdministrationMode(true);
    * Use the existing connection.
    * The default constructor does not set the necessary fields.
    * @pub
    public void init(LibrarySession session, FolderPathResolver resolver)
    throws IfsException
    m_session = session;
    m_resolver = resolver;
    m_ifs = new IfsFileSystem(m_session);
    * Return the login's session
    * @pub
    public LibrarySession getSession()
    return m_session;
    * Return the login's path resolver
    * @pub
    public FolderPathResolver getResolver()
    return m_resolver;
    * Return the IfsFileSystem API object
    * @pub
    public IfsFileSystem getIfsFileSystem()
    return m_ifs;
    * Implementation of valueBound
    * @pub
    public void valueBound(HttpSessionBindingEvent e)
    * Implementation of valueUnbound
    * @pub
    public void valueUnbound(HttpSessionBindingEvent e)
    try
    m_session.disconnect();
    catch (IfsException ie)
    ************************* END WEBCOMMANDLOGIN.JAVA *******************************
    This code has been changed so that it accepts the four agruments that are required
    to connect to the repository and uses them to connect to the repository. Note that
    we have provided the comple te source code to this file in order to make it simple
    to deploy the revised version of the code. Simply cut and paste this code into a
    new file called WebCommandLogin.java in the directory
    $ORACLE_HOME/ifs/ifsdevkit/sampleapps/webcommandapp/
    Compile the java class.
    Copy the classfile to $ORACLE_HOME/ifs/custom_classes/ifsdevkit/sampleapps/webcommandapp/
    Stop and Start all of the protocol servers.
    This issue will be resolved on the next drop of the Oracle Internet File System
    development kit.
    #3. Making the BaseRendererClass available to the Protocol Servers
    Note this step is not required if you have the 1.0.8.3 patch set installed.
    Install the BaseRenderer Class. The BaseRenderer class is delivered in the jar file
    ifsdevkit.jar and can be used to simplify the task of creating a custom renderer.
    Unfortunately the jar file containing this class is not referenced in any of the Classpaths
    used by the iFS protocol servers. This means that they will not be able to load any
    customer renderers that extend BaseRenderer. In order to make BaseRenderer available
    to the Protocol Servers it need to be placed in the appropriate directory under
    <ORACLE_HOME>/ifs/custom_classes.
    Extract the class from the ifsdevkit.jar.
    ifsdevkit.jar is located in <ORACLE_HOME>/ifs/lib after the devkit has been installed.
    jar -xvf ifsdevkit.jar
    extracted: META-INF/MANIFEST.MF
    extracted: BaseRenderer.class
    Create the following directory heirachy in <ORACLE_HOME>/ifs/custom classes
    oracle/ifs/server/renderers
    Copy <ORACLE_HOME>/ifs/lib/BaseRenderer.class to
    <ORACLE_HOME/ifs/custom_classes/oracle/ifs/server/renderers
    That should do it.
    Regards
    Mark D. Drake
    null

    Moving to Top

Maybe you are looking for

  • How to find out URL of Masthead Help Link

    Hi Experts, I am working for a support project. Implementation team has long back left the project. I have to change the 'Help' link URL of Masthead area. There are three links in Masthead - Logoff, Personalize and Help. At present when we are clicki

  • How do I remove the hidden file icons from the Finder folder?

    I recently had problems with Final Cut Pro and had to remove QuicktimeX and use Pacifist to re-install QuicktimeX back into the Applications folder. I now have "hidden icons" that are lightly grayed out in the Finder folder. I was told by the Apple G

  • Can I use something other than HDMI for the apple TV?

    My TV and AVR are in different locations. For this I ran the connection with cat5 and hooked it all up with component video. The AVR won't down convert the hdmi to component out so therefore I can not plug hdmi into it. Does the apple tv connect vide

  • Possible problem downloading Mountain Lion

    It appears that a few people have had problems downloading Mountain Lion. Search for title mountain lion not downloading Since Apple does not provide a DVD disk or any other media for installing the operating system, I am wondering if there is some s

  • Field only check box in extraction

    Hi what is use of field only check box in extraction for selection its reflect data selection tab at infopackage hide menas its wont reflect inversion menas multiple with -1 field only is anothe one what is use of field only regards suneel.