Help I need to Create a Database Schema

Hello Forum, I am sured that I have misunderstood something fundamental.I have created a database called PUS with Database Configuration Assistant,this database is located Network/databases/.(Network/databases/PUS)
Then I want to created a new Schema under PUS, like SCOTT Schema, that I will use toadFree to connect to,
how do I do that ?
Help and thanks

you can use toad if you like, or you can use the sql*plus editor that comes with an oracle installation. Connect to the database with a user with dba priviliges - either sys or system.
To create a schmea , for example scott, issue the following command from the sql prompt:
SQL>create user scott identified by tiger
default tablespace <tablespace_name>
temporary tablespace <temporary tablespace_name>
Replace <tablespace_name> with the tablespace you would like scotts objects to be created in by default.
Replace <temporary tablespace name>, with the name of the temporary tablespace in your database.
After this grant the necessary, roles, privileges to scott, to get you on your way - grant the following two roles:
SQL>grant connect,resource to scott;
naqi

Similar Messages

  • Creating new database schema in jdev

    can I create new database schema in jdev.If yes how?
    I have checked many links but they are telling how to create connection to an existing database but not to create new databse?
    Please help..

    I have checked many links but they are telling how to create connection to an existing database but not to create new databse?
    Database is required to be installed and a database instance created.
    Oracle Database Software Downloads | Oracle Technology Network | Oracle &lt;/title&gt;&lt;meta name=&quot;Title&quot; co…

  • What is the best way to create a database schema from XML

    What is the best way to create a database schema from XML?
    i have  a complex XML file that I want to create a database from and consistently import new XML files of the same schema type. Currently I have started off by mapping the XSD into Excel and using Mysql for Excel to push into MySQL.
    There must be a more .net microsoft solution for this but I cannot locate the topic and tools by searching. What are the best tools and way to manage this?
    Taking my C# further

    Hi Saythj,
    When mentioning "a database schema from XML", do you mean the
    XML Schema Collections? If that is what you mean, when trying to import XML files of the same schema type, you may take the below approach.
    Create an XML Schema Collection basing on your complex XML, you can find
    many generating tools online to do that.
    Create a Table with the above created schema typed XML column as below.
    CREATE TABLE youTable( Col1 int, Col2 xml (yourXMLSchemaCollection))
    Load your XML files and try to insert the xml content into the table above from C# or some other approaches. The XMLs that can't pass the validation fail inserting into that table.
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • EJB newbie -- do i need to create the database?

    I know this may seem an odd question but do i need to create a database and create all the tables with commands such as: CREATE TABLE (...)? or will the deployment descriptor do that for me?
    clarkie

    if u are using entity beans there is no need to create database.
    u can make use of create function of the entity beans...if u are using bmp u need to write explicitly the code(sql code) for creating the database
    if u r using cmp u dont need to explicitly write the code for creating the table
    regards
    shanu

  • How to create a database schema

    could any one help me with database schema I need create one
    thanks!

    I am told that I am connected to an idle instance...not sure what this means It means the database is down. Because you connected AS SYSDBA your connection did not fail; if you had attempted to connect as any other user you would have got the ORA-01034 immediately. So all you need to do is startup the database:
    SQL>  startupBy the way it is considered bad form to resurrect old threads, especially when (as in this case) your issue is not really germane to the original post.
    Also, if you're going to tool around in a database as SYSDBA you really ought to familiarize yourself with the documentation: start with the Concepts Guide and the the two-day DBA manual.
    Cheers, APC
    Blog : http://radiofreetooting.blogspot.com/

  • Need to create a Database in Shared Serve Mode

    Hi,
    Please help me in Creating a Manual Database in Shared Server Mode. (I am a Student and It is a Learning Process).
    I am able to Create Database (Without DBCA) in Dedicated Mode and I have no doubts in that.
    What are the parameters i need to specify
    Please post me Helpful Links

    Poorna Prakash wrote:
    Hi,
    Please help me in Creating a Manual Database in Shared Server Mode. (I am a Student and It is a Learning Process).
    I am able to Create Database (Without DBCA) in Dedicated Mode and I have no doubts in that.
    What are the parameters i need to specify
    Please post me Helpful LinksYOu need to understand that ... as far as the database is concerned ... it's not an either/or situation between dedicated and shared server. Setting shared server parameter like DISPATCHERS simply allows the database to handle shared server connections. But it is up to the client to specify which method it wants, and the database will always allow dedicated server connections.

  • Help! - need to create/list groups in OS 10.5.2 unix

    I need to create some groups in order to install Oracle
    on my 10.5.2 MAC. 10.3.6 MAC had nireport and nicl to
    list and create groups. Unfortunately even tho I can get
    man pages for these commands, the commands themselves no
    longer exist.
    When I posted this question to another forum they directed
    me here, and mentioned that dscl would do what I want.
    But I can't make heads or tails out of the man pages for
    dscl!
    Help!

    SystemPreferences>Accounts, unlock the lock and click the '+' sign. The pull down of 'New Account' has a 'Group' item in it.

  • How to create the database schema from an existing TimesTen database ?

    Hello everybody,
    I'm a newbie to TimesTen database. Before doing complicated sql queries, I would like to obtain the database schema of TimesTen DB. I'm looking for a way to extract the schema of database (tables, keys, links between tables ...). When I was working on other db like postgreSQL, I was able to obtain the sql script of the database (for exemple, in order to re-create the database in an other server). Some software like PowerAMC was able to built the database model from these scripts.
    Do you know a way to obtain the same with TimesTen database ? Or with an other way ?
    Regards

    Hi,
    Take a look in the docs at ttSchema, this might do the trick.
    http://download.oracle.com/docs/cd/E13085_01/doc/timesten.1121/e13069/util.htm#autoId27
    Tim

  • Help Please:  Need To Create Temporary Table

    Hi Guys,
    I am a new Oracle user. I need to create this report that uses
    temporary table. I can't use "create" statment in the sql
    query. Now wihtout that I don't know how to create the
    temporary table. Please let me know if anyone has any
    suggestions.
    Thanks a billion
    Sam

    Hi Sam,
    yes, you can't apply neither Data Definition Language (DDL) nor
    Data Manipulation Language (DML), except SELECT statement, at
    the query builder inside your report. You may create a stored
    procedure containing the DDL or the DML, then run this stored
    procedure at the "Before Report" trigger. You can find this
    trigger under Report Triggers of your Object Navigator.
    hope this help you.
    have a nice day...
    daniel

  • Can i plz get some help, i need to create a vi that gives equation of straight line and graphs

     a vi that inputs two set of coordinates and computes the equation of the straight line joining these two sets of coordinates and graphs this line, and then i must compute the equation of a line perpendicular to this line and passes through (x3,y3) and graph this line.

    You should try to learn Labview basics before trying to tackle a Labview program.  I'll give you a head start because you are probably under some time constraint.  Try to code this and then ask for help when you need it.
    To start you off, use a For Loop.  Your graph will be finite, so wire in a reasonable number into the N terminal of the loop.  Use the i terminal as your X input and calculate Y for each X.  The output of the loop will be an array of Y values.  You can graph those values. 
    Learn how to post your vi here.  There are several ways.  The best is to use Laabview 2009 and create a code snipet (look under the Edit menu).  Then add the snipet to your post by clicking the Upload or Insert Image icon above (the icon looks like a tree).  You can add the vi directley by clicking on Add Attachments below the Tags box.  Be sure to state which version of Labview you are using.
    - tbob
    Inventor of the WORM Global

  • Help/Example needed for creating JMSQueues/JMSTopics using the MBean API

    I am trying to create JMSQueues programmatically using the MBean API. When
    I use MBeanHome.createAdminMBean(), a queue appears in the root of the
    config file. This is progress, but the queue is in the wrong place! I need
    the queues to be part of my JMS server's "destinations" as seen on the
    console.
    So now I am trying to use createConfigurationMBean() instead, but I can't
    figure out what the "parent" parameter should be- no documentation! My
    first guess was that the parent might be the JMSServer, but that doesn't
    work.
    Anyone have example code to insert JMSQueues and JMSTopics into a specific
    JMS server's destinations?
    Here is the code I tried... All goes well until the final
    createConfigurationMBean call, where it throws a MBeanCreationException:
    // Get the MBeanHome bean
    Object obj = jndiContext.lookup("weblogic.management.adminhome");
    MBeanHome mbeanhome = (MBeanHome) javax.rmi.PortableRemoteObject.narrow
    (obj, MBeanHome.class);
    // Get the server MBean
    JMSServerMBean jmsServerMB =
    (JMSServerMBean)mbeanhome.getMBean("examplesJMSServer",
    JMSServerMBean.class);
    // Create the new Queue
    JMSQueueMBean jmsQMB = (JMSQueueMBean)mbeanhome.createConfigurationMBean
    ("weblogic.examples.jms.fooQueue", "JMSQueue", jmsServerMB);

    Ok, I still don't see how I can do it differently with the admin tool. If
    you want to see the commands I'm using, I can post them, but the basic one
    is shown below in the previous message. We're trying to set up a script so
    that developers can just run it and properly configure WebLogic with the
    right components.
    Thanks,
    Michelle
    "Michelle Baxter" <[email protected]> wrote in message
    news:[email protected]...
    I am using the weblogic.Admin tool, not doing this in code. I will attempt
    to translate your advice when I get time again.
    My commands look like this:
    java weblogic.Admin -url 127.0.0.1:7001 -username system -passwordweblogic
    CREATE -mbean "mydomain:Type=JMSQueue,Name=MyJMSQueue"
    I create this, I create the JMSServer MBean, then do and INVOKE (insteadof
    CREATE) and call the addDestination method, adding the JMS Queue MBeanthat
    I created previously, using the same naming scheme as in the above CREATE.
    "Viresh Garg" <[email protected]> wrote in message
    news:[email protected]...
    Daron Cole wrote:
    You can use createConfigurationMBean with JMSQueueConfig but in the
    end
    I used
    the code below to create a topic.The code that you posted is the right way to create queus/topics. alwayscreate admin mbeans to admin
    server and let admin server internally create config Mbeans on the
    managed
    server as per the
    location/targets that you set in admin Mbeans.
    Queue's are the same, just replace the word
    Topic with Queue and it should work. It should show up in the console
    app.
    MBeanHome home = (MBeanHome)ctx.lookup(MBeanHome.JNDI_NAME+".myserver");
    ServerMBean myserver =(ServerMBean)home.getMBean("myserver",ServerMBean.class);
    String topicName = "MyNewTopic";
    JMSServerMBean jmsServerMB =(JMSServerMBean)home.getMBean("JMSServer","JMSServer","mydomain");
    JMSTopicMBean jmsTopicMB =(JMSTopicMBean)home.createAdminMBean(topicName,"JMSTopic","mydomain");
    jmsTopicMB.setJNDIName(topicName);
    jmsServerMB.addDestination(jmsTopicMB);
    Viresh Garg
    Principal Developer Relations Engineer
    BEA Systems
    "Michelle Baxter" <[email protected]> wrote:
    There is no JMSQueueConfigMBean. What do you mean?
    "Daron Cole" <[email protected]> wrote in message
    news:[email protected]...
    Try JMSQueueConfig instead of JMSQueue.
    "Michelle Baxter" <[email protected]> wrote:
    Me too! I'm trying to use the weblogic.Admin class to set up
    queues
    and
    topics and the JMS server. The same results in the config file:
    the
    queues
    and topic were set up at the root, the JMS server was added, but
    no
    destinations, even though I invoked the addDestination method withthe
    created MBean queues and topic as arguments. No exceptions, just
    no
    destinations on the JMS server resulted. What's the right order ofexecution
    for this stuff??
    Thanks,
    Michelle
    "Jude DeMeis" <[email protected]> wrote in message
    news:[email protected]...
    I am trying to create JMSQueues programmatically using the MBean
    API.
    When
    I use MBeanHome.createAdminMBean(), a queue appears in the root
    of
    the
    config file. This is progress, but the queue is in the wrong
    place!
    I
    need
    the queues to be part of my JMS server's "destinations" as seen
    on
    the
    console.
    So now I am trying to use createConfigurationMBean() instead,
    but
    I
    can't
    figure out what the "parent" parameter should be- no
    documentation!
    My
    first guess was that the parent might be the JMSServer, but that
    doesn't
    work.
    Anyone have example code to insert JMSQueues and JMSTopics intoa
    specific
    JMS server's destinations?
    Here is the code I tried... All goes well until the final
    createConfigurationMBean call, where it throws aMBeanCreationException:
    // Get the MBeanHome bean
    Object obj =
    jndiContext.lookup("weblogic.management.adminhome");
    MBeanHome mbeanhome = (MBeanHome)javax.rmi.PortableRemoteObject.narrow
    (obj, MBeanHome.class);
    // Get the server MBean
    JMSServerMBean jmsServerMB =
    (JMSServerMBean)mbeanhome.getMBean("examplesJMSServer",
    JMSServerMBean.class);
    // Create the new Queue
    JMSQueueMBean jmsQMB =(JMSQueueMBean)mbeanhome.createConfigurationMBean
    ("weblogic.examples.jms.fooQueue", "JMSQueue", jmsServerMB);

  • Help.  Need to create 3 methods to do what main did originally.

    good afternoon. I am new to programming with java and would like to change the current code that I had written below to include 3 methods to do all the work originally done in main. I would like a method to handle the input, a method to do the subtotals and a method to display the data. Main will simply call all 3 methods in order and when they end, main will end. I am struggling some on how this should look and am seeking some of your advice on accomplishing this task. Any help is greatly appreciated as I am struggling to separate this out properly to get it to compile.
    import java.util.Scanner;
    import java.text.NumberFormat;
    public class CateringProject
    // This program requests the name of an item to be catered, the price
    // of the item, and the quantity ordered. It will then calculate the
    // total cost plus tax.
    public static void main (String[] args)
    final double TAX_RATE = 0.06; // 6% sales tax
    int quantity;
    double subtotal, tax, totalCost, unitPrice;
    String itemName;
    Scanner scan = new Scanner (System.in);
    NumberFormat fmt1 = NumberFormat.getCurrencyInstance();
    NumberFormat fmt2 = NumberFormat.getPercentInstance();
    System.out.print ("Enter the item name: ");
    itemName = scan.nextLine();
    System.out.print ("Enter the unit price: ");
    unitPrice = scan.nextDouble();
    System.out.print ("Enter the quantity: ");
    quantity = scan.nextInt();
    itemName = itemName;
    subtotal = quantity * unitPrice;
    tax = subtotal * TAX_RATE;
    totalCost = subtotal + tax;
    // Print output with appropriate formatting
    System.out.println ("Item requested: " + itemName);
    System.out.println ("Price per item: " + fmt1.format(unitPrice));
    System.out.println ("Quantity of requested item: " + quantity);
    System.out.println ("Subtotal: " + fmt1.format(subtotal));
    System.out.println ("Tax: " + fmt1.format(tax) + " at "
    + fmt2.format(TAX_RATE));
    System.out.println ("Total: " + fmt1.format(totalCost));
    }

    Thank you for your response. This is, in essence, a homework problem. The only difference is that I am trying to "self-teach" myself java and have borrowed a book from a friend to help me do so. I am working through the coding problems in the book but am missing a key factor when I need a push in the right direction.... I have no instructor. I am wanting to learn this but do not have the resources yet to take a class at a recognized institution. I thought this might be a good way for me to reach out for help and a nudge. The catering code (which I have reposted using the code button below) is the first "project" that the book calls for. what I am trying to do now is the next.
    import java.util.Scanner;
    import java.text.NumberFormat;
    public class CateringProject
       //  This program requests the name of an item to be catered, the price
       //  of the item, and the quantity ordered.  It will then calculate the
       //  total cost plus tax.
       public static void main (String[] args)
          final double TAX_RATE = 0.06;  // 6% sales tax
          int quantity;
          double subtotal, tax, totalCost, unitPrice;
          String itemName;
          Scanner scan = new Scanner (System.in);
          NumberFormat fmt1 = NumberFormat.getCurrencyInstance();
          NumberFormat fmt2 = NumberFormat.getPercentInstance();
          System.out.print ("Enter the item name: ");
          itemName = scan.nextLine();
          System.out.print ("Enter the unit price: ");
          unitPrice = scan.nextDouble();
           System.out.print ("Enter the quantity: ");
          quantity = scan.nextInt();
          itemName = itemName;
          subtotal = quantity * unitPrice;
          tax = subtotal * TAX_RATE;
          totalCost = subtotal + tax;
          // Print output with appropriate formatting
          System.out.println ("Item requested: " + itemName);
          System.out.println ("Price per item: " + fmt1.format(unitPrice));
          System.out.println ("Quantity of requested item: " + quantity);
          System.out.println ("Subtotal: " + fmt1.format(subtotal));
          System.out.println ("Tax: " + fmt1.format(tax) + " at "
                              + fmt2.format(TAX_RATE));
          System.out.println ("Total: " + fmt1.format(totalCost));
    }

  • Help / pointers needed to create a results page

    Hi
    I'm after a few pointers to get me going in the right
    direction.
    I have plenty of data but now need to get some of it into a
    useful report. I guess I need to be using GROUP BY but at the
    moment I'm just getting rows of data rather than a useful table.
    My mySql db has the following (relevant) fields
    bookingID, bookingDate, stats
    bookingID is an auto int (and not particularly relevant at
    the moment)
    bookingDate is dateFormat
    stats is a char(1) either N, X, U, A, F or P
    I'm after a table
    that will give me
    #Week# | #total number of bookings this week# | #number of F
    bookings# | #number of U bookings#
    (i'm happy not to worry about the week value and do it on a
    daily basis to start with)
    Any help gratefully appreciated
    Mi-ul

    this works very well for me:
    <cfset statsList = "X|F|P|A|U|N">
    <cfquery name="q1" datasource="...">
    SELECT WEEK(b.bookingDate, 5) AS bookingWeek,
    COUNT(b.bookingID) AS
    totalBookings
    <cfloop list="#statsList#" index="stat" delimiters="|">
    , COUNT(sq_#stat#.bookingID) AS totalBookings_#stat#
    </cfloop>
    FROM bookings b
    <cfloop list="#statsList#" index="stat" delimiters="|">
    LEFT JOIN (SELECT b#stat#.bookingID FROM bookings b#stat#
    WHERE stats =
    '#stat#') sq_#stat# ON b.bookingID = sq_#stat#.bookingID
    </cfloop>
    GROUP BY bookingWeek
    ORDER BY bookingWeek
    </cfquery>
    <cfoutput query="q1">
    Week: #bookingWeek# | Total Bookings:
    #totalBookings#<cfloop
    list="#statsList#" index="stat" delimiters="|"> | #stat#:
    #q1['totalBookings_' &
    stat][currentrow]#</cfloop><br>
    </cfoutput>
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/

  • I need help! Need to create a calculator.

    Can someone tell me if it's possible to create a calculator on a website? I'm doing a website for a concrete company, and the owner wants a calculator on there for large scale jobs and I HAVE NO IDEA how to do it! Thanks.

    It is possible to create a calculator with Flash, to just about any complexity you like.  The key to alot of it is learning how to utilize input textfields and variables, and possibly the Math functions in your coding.  If the client will have options to choose from, like a drop list of material choices, then you'll also need to become familiar with coding and extracting selected values from components.

  • Help! Need to create outline of a text shadow...

    Hi there
    I have designed the above white shadow using the path offset function. I want to create outlines for this shadoa only but am experiencing some difficulty. I have expanded the image but this shows both outlines for the black text and the white shadow. I only want the outlines for the white shadow so that this can be cut out, but another tricky thing is, i dont want the complete letters cut out but only the outline shape of letters (i tried to show above)..
    Please forward any ideas.
    Thanks
    Gemma

    Gemma,
    I have designed the above white shadow using the path offset function. I want to create outlines for this shadoa only but am experiencing some difficulty. I have expanded the image but this shows both outlines for the black text and the white shadow. I only want the outlines for the white shadow so that this can be cut out, but another tricky thing is, i dont want the complete letters cut out but only the outline shape of letters (i tried to show above)..
    If the offset is sufficient to make the borders of the white shadows overlap or have coinciding Anchor Points, you may Pathfinder>Merge, and then release Compound Paths and remove counters (holes in letters) as needed.

Maybe you are looking for