Oracle SQL Newbie need help with OE Demo Schema Installation

Hello everybody !
I'm hoping some kind soul can help out this SQL newbie.
First of all i've installed 10g R2 database on a PC running XP SP2.
Oracle is installed on the root C: drive
I'm using the SQL Fundamentals I Exam Guide and DBA Handbook (Both Oracle Press)
as my reference.
My problem is this.
I installed the DB and created the demo HR schema without too much problem
but it's the demo OE schema i'm having problems getting running and cannot
find anywhere on the net that outlines a step by step SQL process.
I am using SQL Plus to execute these commands.
My questions are these:
-For the default tablespace i specify "users" ?
-What do i specify for the temporary tablespace ? "temp" ?
-what directory path do i put for the data files as parameter 6 ?
I put down "C:\oracle\product\10.2.0\db_1\demo\schema\order_entry" but i suspect it's
the wrong thing ?
-What do i specify for the writable directory path for the log files ?
Is it C:\oracle\product\10.2.0\RDBMS\log
-And what is "Specify version as parameter 8:" line ?
I assumed it was the db version but i believe it's wrong.
Could somebody please help me ? I've already done my CCNA and i wanted to add oracle under my belt.
I know if i had these few things cleared up for me it would pave the way to actually enjoying learning Oracle :)
Thank you for any assistance :)

I installed the DB products from the companion disk and there was no specific mention of the demo schemas. Regardless... They're all there within the demo subfolder and have already created the hr schema.. I just need somebody (I'll pay if necessary) to PLEASE just answer (what would be easy to you guys my questions so i can move on.
this is a cap from my sql plus..
SQL*Plus: Release 10.2.0.1.0 - Production on Mon Jun 14 15:01:29 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> alter user oe account unlock identified by oe;
User altered.
SQL>
specify password for OE as parameter 1:
Enter value for 1: mewfymewf
specify default tablespeace for OE as parameter 2:
Enter value for 2: users
specify temporary tablespace for OE as parameter 3:
Enter value for 3: temp
specify password for HR as parameter 4:
Enter value for 4: mewfymewf
specify password for SYS as parameter 5:
Enter value for 5: mewfymewf
specify directory path for the data files as parameter 6:
Enter value for 6: C:\oracle\product\10.2.0\db_1\demo\schema\order_entry
writeable directory path for the log files as parameter 7:
Enter value for 7: C:\oracle\product\10.2.0\db_1\RDBMS\log
specify version as parameter 8:
Enter value for 8: 10.2.0
User dropped.
old 1: CREATE USER oe IDENTIFIED BY &pass
new 1: CREATE USER oe IDENTIFIED BY mewfymewf
User created.
old 1: ALTER USER oe DEFAULT TABLESPACE &tbs QUOTA UNLIMITED ON &tbs
new 1: ALTER USER oe DEFAULT TABLESPACE users QUOTA UNLIMITED ON users
User altered.
old 1: ALTER USER oe TEMPORARY TABLESPACE &ttbs
new 1: ALTER USER oe TEMPORARY TABLESPACE temp
User altered.
Grant succeeded.
Connected.
Session altered.
Session altered.
SP2-0310: unable to open file "C:\oracle\product\10.2.0\db_1/demo/schema/order_entry/coe_10.2.0"
SP2-0310: unable to open file "C:\oracle\product\10.2.0\db_1/demo/schema/order_entry/loe_10.2.0"
SP2-0310: unable to open file "C:\oracle\product\10.2.0\db_1/demo/schema/order_entry/poe_10.2.0"
Session altered.
...creating subschema OC in OE
Type created.
Type body created.
Table created.
FROM inventories i, warehouses w
ERROR at line 6:
ORA-00942: table or view does not exist
FROM product_information p
ERROR at line 10:
ORA-00942: table or view does not exist
FROM customers c
ERROR at line 20:
ORA-00942: table or view does not exist
FROM customers c
ERROR at line 20:
ORA-00942: table or view does not exist
FROM customers c
ERROR at line 20:
ORA-00942: table or view does not exist
FROM orders o
ERROR at line 9:
ORA-00942: table or view does not exist
ON oc_orders FOR EACH ROW
ERROR at line 2:
ORA-00942: table or view does not exist
TABLE order_item_list OF oc_orders FOR EACH ROW
ERROR at line 2:
ORA-00942: table or view does not exist
Commit complete.
FROM oc_product_information o
ERROR at line 4:
ORA-00942: table or view does not exist
FROM oc_product_information o
ERROR at line 4:
ORA-00942: table or view does not exist
FROM oc_product_information o
ERROR at line 4:
ORA-00942: table or view does not exist
FROM oc_product_information o
ERROR at line 4:
ORA-00942: table or view does not exist
FROM oc_product_information o
ERROR at line 5:
ORA-00942: table or view does not exist
FROM oc_product_information o
ERROR at line 4:
ORA-00942: table or view does not exist
FROM oc_product_information o
ERROR at line 5:
ORA-00942: table or view does not exist
FROM oc_product_information o
ERROR at line 5:
ORA-00942: table or view does not exist
FROM oc_product_information o
ERROR at line 4:
ORA-00942: table or view does not exist
FROM oc_product_information o
ERROR at line 4:
ORA-00942: table or view does not exist
FROM oc_product_information o
ERROR at line 4:
ORA-00942: table or view does not exist
FROM oc_product_information o
ERROR at line 4:
ORA-00942: table or view does not exist
FROM oc_product_information o
ERROR at line 4:
ORA-00942: table or view does not exist
FROM oc_product_information o
ERROR at line 4:
ORA-00942: table or view does not exist
FROM oc_product_information o
ERROR at line 4:
ORA-00942: table or view does not exist
FROM oc_product_information o
ERROR at line 5:
ORA-00942: table or view does not exist
FROM oc_product_information o
ERROR at line 4:
ORA-00942: table or view does not exist
FROM oc_product_information o
ERROR at line 4:
ORA-00942: table or view does not exist
1 row created.
1 row created.
1 row created.
1 row created.
Type altered.
3 rows updated.
0 rows updated.
0 rows updated.
0 rows updated.
Commit complete.
Type body altered.
Type body altered.
Type body altered.
PL/SQL procedure successfully completed.
SQL>
Like i can figure out that the "version in parameter 8" has something to do with the coe, poe & loe files
but i don't know what.
If somebody can please help me with my questions then i know i can move on.
Thanks
Edited by: user11216992 on Jun 14, 2010 3:37 PM

Similar Messages

  • Newbie - need help with a SQL query for a bar chart

    Hi,
    I'm a new user on APEX with no real SQL knowledge and I'm trying to build a dashboard with charts into an existing APEX application. Based on another application, I have come up with the following SQL code:
    select null link
    , CATEGORY label
    , count (decode(PROJECT_STATUS,'1',PROJECT_ID))"Active"
    , count (decode(PROJECT_STATUS,'2',PROJECT_ID))"Complete"
    , count (decode(PROJECT_STATUS,'3',PROJECT_ID))"On Hold"
    , count (decode(PROJECT_STATUS,'4',PROJECT_ID))"Pipeline"
    , count (decode(PROJECT_STATUS,'5',PROJECT_ID))"Pending Review"
    from GRAPO_PROHEADTRK
    where (PROJECT_STATUS='1' or PROJECT_STATUS='2' or PROJECT_STATUS='3' or PROJECT_STATUS='4' or PROJECT_STATUS='5' or PROJECT_STATUS='6')
    group by CATEGORY
    Order by COUNT(PROJECT_ID) DESC
    The code from the other app was:
    select null link
    , FUNCTIONAL_AREA label
    , count (decode(PROJECT_STATUS,'Active',PROJECT_ID))"Active"
    , count (decode(PROJECT_STATUS,'Complete',PROJECT_ID))"Complete"
    , count (decode(PROJECT_STATUS,'On Hold',PROJECT_ID)) "On Hold"
    , count (decode(PROJECT_STATUS,'Recurring',PROJECT_ID))"Recurring"
    , count (decode(PROJECT_STATUS,'Pipeline',PROJECT_ID))"Pipeline"
    , count (decode(PROJECT_STATUS,'Not Approved',PROJECT_ID))"Not Approved"
    from PM_V2
    where LOB='S2S' and (FUNCTIONAL_AREA='Accounts Payable' or FUNCTIONAL_AREA='Expense' or FUNCTIONAL_AREA='Procurement' or FUNCTIONAL_AREA='Fixed Assets')
    group by FUNCTIONAL_AREA
    Order by COUNT(PROJECT_ID) DESC
    I'm getting a "Failed to parse SQL query!" error when I try to run validation.
    Is this enough info for some assistance? Any help would really be appreciated.
    Thanks,
    Rachel

    Hello,
    This is more of an SQL question, rather than specifically APEX-related. It's notable that you say: I'm a new user on APEX with no real SQL knowledgeWhich is fine (we all have to start somewhere, afterall) but it might be worth de-coupling the problem from APEX in the first instance. I'd also strongly recommend either taking a course, reading a book (e.g. http://books.google.co.uk/books?id=r5vbGgz7TFsC&printsec=frontcover&dq=Mastering+Oracle+SQL&hl=en#v=onepage&q=Mastering%20Oracle%20SQL&f=false) or looking for a basic SQL tutorial - it will save you a whole lot of heartache, I promise you. Search the oracle forums for the terms "Basic SQL Tutorial" and you should come up with a bunch of results.
    Given that you've copied your query template from another, I would suggest ensuring that the actual query works first of all. Try running it in either:
    * SQL Editor
    * SQL*Plus
    * an IDE like SQL Developer (available free from the OTN: http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html ) or TOAD or similar.
    You may find there are syntax errors associated with the query - it's difficult to tell without looking at your data model.
    select null link
    , CATEGORY label
    , count (decode(PROJECT_STATUS,'1',PROJECT_ID))"Active"
    , count (decode(PROJECT_STATUS,'2',PROJECT_ID))"Complete"
    , count (decode(PROJECT_STATUS,'3',PROJECT_ID))"On Hold"
    , count (decode(PROJECT_STATUS,'4',PROJECT_ID))"Pipeline"
    , count (decode(PROJECT_STATUS,'5',PROJECT_ID))"Pending Review"
    from GRAPO_PROHEADTRK
    where (PROJECT_STATUS='1' or PROJECT_STATUS='2' or PROJECT_STATUS='3' or PROJECT_STATUS='4' or PROJECT_STATUS='5' or PROJECT_STATUS='6')
    group by CATEGORYNote that your "order by" clause references a field called "PROJECT_ID", which exists in the old query but you've changed other similar references to "PROJECT_STATUS" - is it possible you've just missed this one? The perils of copy-paste coding I'm afraid...

  • Newbie needs help with Flex app

    Hi there. I am very new to Flex and also fairly new to
    programming although I do have a little experience.
    I am trying to create an app which stores code snippets or
    common text I tend to use every day in my documents and emails.
    So basically I need help on a design level. I can refer to
    the developer's manual for exact instructions for commands, but I
    need to know what to code first.
    The app will consist of:
    -a tree directory structure where I can create groups.
    -There will be a basic text editor where I input all my data,
    basic text formatting options (font, bullets etc) would be a bonus.
    -A search function
    -Finally it will ideally allow multiple client apps write to
    a central database file over a network
    Can anyone suggest how I should approach such a project?
    Or are there any tutorials / source files which demonstrate
    each bullet point?
    thanks.

    Hey jono,
    I'm new too. But I think I might know the right components.
    If you google any of these + flex 3 you should get some
    decent documentation
    tree - advanced dataGrid component
    basic text editor - rich text editor component
    search function - well, you're gonna need to read up on
    arrays, and arraycollection. Once you get that stuff working, you
    can write up a function to search for a string in an array.
    network functionality - HTTPService, you can dump the
    datagrid into a database, and have it load the database when you
    open up the application.
    Give these things a shot, tutorials / sources will come with
    the google searches.

  • Newbie needs help with browser compatibility

    Ok, so I'm new at this, so this may be something really
    simple, but browser compatibility? I made a site in DW;html and it
    shows up perfect in safari but internet explorer and firefox not so
    much. I did a browser compatibility test in DW and it says nothing
    is wrong with my pages, but obviously something must be!!
    On my home page, the image of a house that I have next to the
    company name shows up fine in safari but not any other browsers.
    And my page layout, everything is moved over funny in other
    browsers. Also there are link boxes around the table I created with
    different brands of products. On safari the boxes do not show, but
    all the other browsers it does!! I'm new at this and frustrated!!!
    Need help!!
    The link is holmeshifi.com and I posted code from the home
    page!

    OK thanks Ned sorry to soo dumb I'm on a learning curve here!  what 
    I'm trying to do is go to the URLs of web galleries of images from my 
    main site
    so I would presumably have to rename them on my server? i.e. does that 
    mean adding the code ", "_blank");
    to the files on the server?
    At the moment I have to use the back button on my browser window which
    takes me back to the main site which then has to reload (tediously!)

  • MSI P67A-C45 (B3) Newb needs Help with connections..

    Hi all..
    First time posting here, but have been in the shadows for quite a while..   
    Anyway, i decided to finally take the plunge, and build my own PC, and now i'm beginning to hit a few bumps.
    I have a couple of questions that i would like some help with, if possible to reassure myself i may be in the right direction..
    I bought THIS PSU and was hoping someone could tell me where the Blue connectors (one labelled CP and one labelled U1) Connect to?
    Is it into JPWR2? And does it/do they only connect in the correct way? (Do i remove the plastic cap and attach both?
    and i bought THIS VIDEO/GRAPHICS CARD and i'm guessing the RED "PCI express" and "SLI ready" connect to that somehow (Haven't opened box yet for card)
    Again, wondering is there a certain way for them to connect.
    Also, from my chassis, the "AC '97" and "HDA" connectors go to JAUD (I guess), does it matter which one? (I currently have "HDA" connected)
    I have i5 2500k already on board. (If that makes a difference).

    Quote from: Ben_Cartwright on 26-May-11, 22:05:35
    Do the Audio plugs go into JAUD? and does it matter which one?
    Yep, connect the front panel audio to the JAUD. If you need the pin layout, it says in the manual. I would say the HDA connector is the one to connect.
    Quote from: Ben_Cartwright on 26-May-11, 22:05:35
    Any recommendations for testing it all, before i plug it in, and press the power?
    Should i (Can i) test individual parts first?
    Thanks again.
    Check all power connections, seating of the RAM and add-on cards, check the HSF is plugged into the fan header, and obvious things like that.
    As for testing, enter the BIOS and make sure the CPU isn't running too hot. Set up the RAM with the required timings and voltage, and test with >>Memtest86<< for several hours. No point starting the Windows installation if say your RAM has errors, since it will corrupt files during the install, if it installs at all.

  • Storm user newbie needs help with appcenter

    hi everyone. i need help regarding my blackbeery storm 9500. i bought from a friend but he only gave the charger and the the phone. there is no app center. is there anyway i could get the appcenter so that i can get the bbmessenger?

    You can download BBMessenger from your Blackberry browser at www.blackberry.com/bbm
    AppWorld: www.blackberry.com/appword
    You must have the BlackBerry Data Plan on your device to use either of those services.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Query off of Oracle using WinSql - Need help with query

    I am trying to query off of Oracle using program WinSql.
    I have a table(tticpr200110) that has the following sample data:
    ITEM     CODE     T$AMNT
    23500076 ACL     .0049
    23500076 APM     0
    23500076 APO     .0093
    23500076 EXP     .0001
    23500076 RES     .0072
    and what I want it to look like is:
    ITEM     ACL     APM     APO     EXP     RES
    23500076     0.0049     0     0.0093     0.0001     0.0072
    (actually I need the last 2 columns added together to be MATL-but can deal with that down the road).
    Seems simple enough, but I don't know to put into the columns.
    Any help would be GREATLY appreciated as soon as possible would be even better.

    My table - tticpr200110 when it runs I get the following sample data for part number 23500076:
    The first coloumn ITEM is the part number.
    The second column CODE is 1 of 5 different cost codes
    The third column is the cost for that code for that part.
    ITEM CODE AMNT
    23500076 ACL 0.0049
    23500076 APM 0.0000
    23500076 APO 0.0093
    23500076 EXP 0.0001
    23500076 RES 0.0072
    I want to make a query that makes the data look like this:
    ITEM ACL APM APO EXP RES
    23500076 0.0049 0.0000 0.0093 0.0001 0.0072
    (similar to a pivot table in excel or acess)
    I hope this helps better.
    Thanks!

  • Newbie need help with Web BEx setup!

    Out of curiosity, I decided to install Netweaver so I can have a play with it. I am a complete newbie to Netweaver therefore I apologise if this is out of context...
    Here's my question:
    How do one go about getting Web BEx to work?
    Whenever I activate the link in the portal, I get an error about unknown "SWITCH_AXES" command and 0ANALYSIS type 4 error. I search the forum and the few passing mentions of the problem points to OSS notes that is only accessible through service marketplace (which I don't have an ID). I have check the object types in BI content and seems that 0ANALYSIS is already activated. There must be something I am missing. Tried blindly and randomly installed other BI content (mostly Web templates and objects) but to no avail (and encounted a few short dumps).
    Any help is greatly appreciated!
    So far, here're what I did:
    1) Install Netweaver 2004S ABAP and Java on the same machine. Instance 00, 01 and 02 respectively.
    2) Try to run BI-Java template installer, but met with error part way. So some of the steps are done manually.
    3) Set up SLD (both instance are in the landscape), and 'partially' set up SSO. Partially as while JAVA to ABAP seems to work, ABAP to JAVA is not working. Anoying but livable.
    4) Installed TREX (instance 03) and are seen by ABAP and JAVA.
    5) ABAP is seen in the portal and I can create transactional iviews and put them in the Portal (with working SSO).
    6) Did reverse-proxying with Apache, but I don't think it matters as it seems to be a backend module issue.
    7) Business planning/wizard is working (in ABAP and Portal) as is Broadcast. As you can see, Web BEx is the only thing that is not working

    The default link for Web Analyser in EP 7 seems to point to the new template. When opening the analysis template in the new BEx windows tool, the same error is being reported. Using 3.5.x WAD, I can't locate the template.
    More on this issue Although for that case, the meta data is not installed. Is there a way to trace missing component and reinstall the needed BI content in RSA1?
    BTW, these are on JAVA SP9 and ABAP SP11.

  • Newb needs help with dynamic text

    Hi Everyone,
    I don't like being a newb - but that's how it is...
    I'm trying to create a multipage registration form that
    allows uses to register products.
    The first page asks for name etc, and on the second page I
    want it to say "Welcome "+username "!" - that sort of thing...
    The problem is I can't get it to keep the dynamic text values
    accross the pages.
    I can get it to repeat the input on the first page with this
    code:
    _root.firstname_txt.onChanged = function() {
    _root.firstname_repeat.text="Hello
    "+_root.firstname_txt.text;
    However when I call it on the second page it is undefined:
    second_repeat.text="hello "+_root.firstnamt_txt.text;
    trace (_root.second_repeat.text);
    I'm sure this is something simple and I'm just a programming
    dunce...
    Any help is appreciated.
    ta

    if your textfield (_root.firstname_repeat) doesn't exist on
    the 2nd frame, its text property will be undefined.
    to remedy, either extend your textfield's existance into the
    frames needed or use a variable to store its text property (in your
    onChanged handler) and use that variable to retrieve the value you
    need.

  • Crypto newb: Need help with encrypting data for offline Swing app

    Hi all,
    I'm VERY new to cryptography. Can somebody point me in the right direction? I've created a Swing application that is intended to be used offline (no network connections are established by the app). I need to export XML files from this application, to be transported via floppy to another instance of the application on a different computer for import. The information is sensitive and must be encrypted!
    I started looking into AES and using asymmetric ciphers (public/private key encryption). But then I realized that if Jane is exporting a file for Bob to view, she won't have access to Bob's public key (no network access). Ugghh!
    I noticed another solution in this forum where the person suggested using password encryption. It was an old post and I think it used DES. Anyway, password encryption doesn't seem too secure.
    So, I thought I'd create a symmetic key (correct term?) once, store it in the program directory, and distribute it with the application installer. That way, everyone would have the same key and would be able to encrypt/decrypt each others files. Right? Err... I'm not sure.
    Like I said, I'm a newb at crypto. If someone could suggest the best/most secure way to accomplish this, I would be eternally grateful.
    PLEASE HELP!!! :-D
    Thanks in advance.

    Sorry, Grant. I must've posted that last one just
    after your response. I was intending the message to
    be for Anand. Heh - you have no idea how many times I've done the same thing. It's an artifact of the asynchronous nature of message boards.
    Your response is very helpful. Out of
    curiosity, does my last post provide any more insight
    that would change your mind? Or do you still believe
    that using password encryption and letting the user
    choose/provide the password is the best solution?Well, as you noted, giving everyone two sets of keypairs is semantically equivalent to giving everyone a single symmetric key. And, as I've noted, it's completely INsecure - everyone who gets access to an install disk, either legitimately or no, can read every transmission your app makes forever after. Cryptographically speaking, this is Not A Good Thing.
    The advantage of PBE is that it's easy for your users to exchange keys when their machines can't see each other. The real key here is that your app, if you really want it to be secure, MUST allow/require that transmission between Alice and Bob use a different key than that between Alice and Carlos or Bob and Carlos - otherwise, if Eve compromises any user of your software, ALL users are compromised.
    I'd go with PBE, just because other alternatives are painful for your end users. You could use generated KeyPairs, for example, if you provide a means for users to exchange public keys. If you display Bob's public key in encoded, String-able form, then Bob can either email that to Alice or read it off to her over the phone. Into your app Alice loads/types in that public key, and the app now knows how to secure communications with Bob.
    Public keys are large, though, and people screw them up typing them in. And many users have TERRIBLE key discipline - if Bob loses access to his private key, he can't read anything Alice sends. And if his private key is readable on some public shared folder (which happens with a totally-frightening regularity), then we're back to no security at all.
    Use one of the triple-DES PBE Ciphers, and get on with making your app do what you really want it to do, would be my advice. (Free advice, of course, being worth every penny you pay!)
    Once again, thanks a bunch!Glad to help.
    Grant

  • Newbie needs help with passing variables or creating flash object based on parameters

    Hello Community,
    I'm an amateur developer of Ms Access databases. In one of my applications I want to visualize the options available when reaching a certain score.
    What I'd like to get from this trial period, is a flash animation of a dartboard. Depending on an array of variables that provides the fill color (or reference thereof) the layers of the flash object will be dynamicly created, altered, or switched. The dartboard itself remains "static". I'm hoping to use 9 colors.
    I can manipulate the array any way needed. I can provide XML coding to pass the array variables. I'm just too new and untrained to incorporate this in a Edge animation or Dreamweaver.
    There is no need for interaction, once the object is created (ie no user feedback).
    Can someone point me in the right direction?
    thanks in advance,
    Jay from Stockholm

    Hi,
    I see you're using System.Data.OracleClient (which has been deprecated by MS) rather than Oracle.DataAccess.Client, but this works for me with Oracle's ODP, maybe it will help.
    Cheers,
    Greg
    using System;
    using System.Data;
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    public class dataadapterfill
        public static void Main()
            using(OracleConnection con = new OracleConnection("user id=scott;password=tiger;data source=orcl"))
                con.Open();
                using(OracleCommand cmd = new OracleCommand("select ename from emp where ename = :1", con))
                    cmd.Parameters.Add(new OracleParameter("myename", OracleDbType.Varchar2, 50)).Value = "KING";
                    OracleDataAdapter da = new OracleDataAdapter(cmd);
                    DataSet ds = new DataSet();
                    da.Fill(ds);
                    foreach (DataRow row in ds.Tables[0].Rows)
                        Console.WriteLine("ename: {0}", row["ename"]);
    }

  • New to pl/sql and need help with procedure

    Hello there, I got two tables STAFF and BONUS which are not related by any constraints
    STAFF
    ID_NUMBER HIREDATE SALARY BONUS
    100020 12-MAY-03 13600
    100021 04-NOV-01 30000
    100022 08-APR-02 28000
    100023 08-APR-02 24000
    BONUS
    PERCENTAGE MORE_THAN_YEARS
    0.1 3
    0.15 5
    0.3 7
    0.45 9
    0.5 12
    I am trying to create a procedure that would calculate bonus based on years of employment according to bonus table.
    If employees sysdate -hiredate is greater than 5, he would get salary*0.15%....
    I created this procedure, but I got stuck here.
    I calculated the length of employment for every soldier using cursor in a loop, but I don't know how to get values from bonus table and connect them together.
    Please help me!
    create or replace
    procedure bonus_staff
    as
    cursor c1 is select *from staff;
    bon real;
    begin
    FOR ITEM IN C1
    LOOP
    bon := FLOOR(months_BETWEEN(SYSDATE,ITEM.hiredate)/12)*
    update staff
    set bonus = bon
    where id_number = ITEM.id_number;
    exit when c1%notfound;
    end loop;
    end;
    Thanks in advance..

    update staff
    set bonus = (select percentage
    from bonus
    where more_than_years = (select max(more_than_years)
    from bonus
    where more_than_years <= FLOOR(months_BETWEEN(SYSDATE,staff.hiredate)/12)
    You can do this in pure SQL, which operates on a set, so no PL/SQL is required.
    Sybrand Bakker
    Senior Oracle DBA

  • Newbie needs help with MS exchange / MS Push email

    I just got an iPhone 3G a few days ago. Heretofore, all my experience has been with HTC, Motorola and Blackberry phones. As a non-technical person trying to make Pust work through my network is very confusing.
    I read the instructions / bulletins and finally made email and calendar work (sort of). It only works on WiFi and then I have to manually update mail as it does not always Push.
    Does the iPhone Push setup only work with Server 2003 / Push via WiFi? If not, can anyone give me step by step instructions on how to make it work with 3G and no WiFi?
    If possible, please be specific as I am a newbie trying to make this work for my small company.
    If I can't find a solution I'll have to get rid of this and go back to something that works.
    It seems that Apple is making it very difficult to set this phone up for Push application
    Thanks,
    Gary

    The iPhone works fine over cellular. You did mention a certificate - I am going to guess that this may be the issue.
    If you open Safari on the iPhone and connect to your OWA, do you get a warning? When you viewed the cert in IE, is it self-signed? If so you need to get it on the iPhone. The easiest way is to set up gmail or something similar on iPhone and email it to yourself.
    when it come in email your iPhone will immediately recognize it as a file that you can import it. Select it and import it, then you should be able to connect to your Outside Exchange server.

  • AE "newbie" needs help with effect - (please!)

    Hi all:
    I'm working on a highlight video of my daughter - she's the goalie for her H.S. Lacrosse team.  I recently bought the Creative Cloud subscription. I'm editing the video in Premiere Pro CC on an iMac - OSX 10.7.5.
    I'm putting together a short intro/open, and trying to add some effect to my daughter in the clip shown below.  She is running/jumping - I want to be able to isolate just her and add some sort of color effect, a glow (or even just make everything else b&w).  Obviously, my problem is with masking or roto brushing.  I've spent many hours (probably too many!) watching tutorials and reading the help articles -- and I just can't seem to get it right.  I saw a video talking about the much anticipated October update - and wondering if the new Mask Tracker will do what I need/want?
    Here is the clip - (my daughter is #11 - the only one wearing a helmet)
    Thanks in advance for any guidance/help/suggestions you can provide,
    Kim

    Thanks again for pointing me in the direction of the Motion Tracking and Rotoscoping tutorial.
    I successfully (in my opinion, anyway!) was able to apply an effect to the moving object (my daughter ).  There are a few places that I could tighten up the mask, but it's not too bad - and I just realized I forgot to feather the mask - so that will help as well.
    I tried a bunch of different effects -- but really wasn't happy with any of them.  I went ahead and just made her B&W just for illustrative purposes.
    What I'd really like to do is make the background B&W and keep her in color.
    I tried applying the B&W effect onto the footage layer -- but it seemed to make everything b&w - including my masked/rotoscoped object. I am sure that it is very simple to do -- but haven't been able to find the right instructions.
    (I looped the clip a few times - since it is only about 1.5 seconds long)..
    So - again - thanks in advance for helping me figure out how to apply the B&W to just the background!
    Kim

  • Newbie Needs Help With Website

    I am new to Dreamweaver and am undertaking the task of building my church website. I have placed the images in tables on and centered. I have also set the table width to 60% so that it will display properly in different resolutions. However the links I have created on the left move over the images when the screen size is reduced. My question is what do I need to do with the links to keep them locked in place when the screen size is reduced.
    Any help is greatly appreciated. Below is the code that is used for the links
    The website that I am working at is: http://www.friedlandmoravian.org
    <div id="apDiv2">
      <div align="center">
        <p>
          <script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0','widt h','79','height','25','src','text1','quality','high','pluginspage','http://www.adobe.com/s hockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','bgcolor','#44352A','movie' ,'text1' ); //end AC code
        </script>
          <noscript>
            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="79" height="25">
              <param name="movie" value="text1.swf" />
              <param name="quality" value="high" />
              <param name="bgcolor" value="#44352A" />
              <embed src="text1.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="79" height="25" bgcolor="#44352A"></embed>
            </object>
          </noscript>
        </p>
        <p>
          <script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0','widt h','113','height','26','src','text2','quality','high','pluginspage','http://www.adobe.com/ shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','bgcolor','#44352A','movie ','text2' ); //end AC code
    </script>
          <noscript>
            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="113" height="26">
              <param name="movie" value="text2.swf" />
              <param name="quality" value="high" />
              <param name="bgcolor" value="#44352A" />
              <embed src="text2.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="113" height="26" bgcolor="#44352A"></embed>
            </object>
          </noscript>
        </p>
        <p>  </p>
        <p>
          <script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0','widt h','106','height','25','src','text3','quality','high','pluginspage','http://www.adobe.com/ shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','bgcolor','#44352A','movie ','text3' ); //end AC code
    </script>
          <noscript>
            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="106" height="25">
              <param name="movie" value="text3.swf" />
              <param name="quality" value="high" />
              <param name="bgcolor" value="#44352A" />
              <embed src="text3.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="106" height="25" bgcolor="#44352A"></embed>
            </object>
          </noscript>
        </p>
        <p>  </p>
      </div>
    </div>

    I can't see any tables being used on the entry page.. all you are using is absolutely positioned divs. Not sure why you are using AP divs, are you?
    Unless you understand how these work, you will be in a lot of bother, one of them being the exact problem you mention.... read this article before doing anything else:
    http://apptools.com/examples/pagelayout101.php
    That layout can be quite easily achieved by a beginner using a table layout - one for header, a nested table layout for the left and right columns and then another for the footer area.
    Also a simple css layout would work, but you'd again need to understand css positioning.
    The page took a heck of a long time to load and its because all you've used is images....  type your url into the box at this site and you'll see that the image sizes are just too big, causing the slow load times.
    http://analyze.websiteoptimization.com/wso
    Had a look at one of the inner pages (history) and again you are using an image for the text area - why would you do that...
    Firstly, it would cause a speed issue and more importantly would cause you problems if you wanted the page spidered by the search engines... no text on a page and the SEs won't find you.
    Sorry to say this, but I'd start over, but before you do, please read up on how to create a page (using either tables or css) that isn't as fragile as the one you have and that will be consistent across different browsers.
    Here are some links to help you get started:
    http://www.w3schools.com/
    http://www.macromedia.com/devnet/mx/dreamweaver/css.html
    http://www.macromedia.com/devnet/dreamweaver/articles/tableless_layout_dw8.html
    http://www.macromedia.com/devnet/dreamweaver/articles/css_concepts.html
    The last one on the list may suit you to start with, as it takes a FWs comp and shows you how to build the site in Dreamweaver.
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt1.html
    Hope some of this helps  :-)

Maybe you are looking for

  • Best Datasources to use for Sales Orders and Invoiced Quantities

    Hello Experts, Just wanted to ask if anyone has experience and can recommended the ECC Datasources to use to extract: 1. Invoiced Qty = Sales History 2. Open Sales Orders 3. Shipped Qty= Goods issued but not yet invoiced So far in my research I have

  • Changes are not reflected in ODS

    Hi all Can anyone help me with this!!!!!!!! There is an ODS1 which gets data from transparent table. From ODS2 data is loaded into transparent table. Then the data is deleted from ODS1 and ODS2. Again the data is reloaded into ODS2 and then into ODS1

  • Scheduling transaction VCC1

    Hi all,   I want to schedule transaction VCC1 to run daily in background. The normal flow has the following steps in it. 1. AFter selection screen, the report executes and generates a list of sales documents with pending authorization with checkboxes

  • How to view list of all constraints,triggers,procedures ...etc

    hi, how to view a list of all the available constraints, triggers, procedures, functions, packages in a database.And how to view its definition ?

  • STUCK Threads.... Web Logic goes to overloaded state

    Hi, We are facing production problem with struck threads and WL server is going to overloaded state very frequently. When this happens, we have to restart the server to void this issue. Since we dont know when this problem occurs, our support team ha