Creation of a public table in oracle 10g

Hey Guys,
I got stcuk while creating a public table which allow all users on the system to access and tried to implement the concept of ownership and previleges but got the following error:
ORA-02421: missing or invalid schema authorization identifier
The query which i used is:
create schema authorization public
create table students (
surname char(15) not null,
first_name char(15),
D_O_B date,
student_no integer not null unique,
dept_no integer,
year decimal(2)
Could anyone please get me the resolution of this prolem.
Thank You!

user12985670 wrote:
Hey Guys,
I got stcuk while creating a public table which allow all users on the system to access and tried to implement the concept of ownership and previleges but got the following error:
ORA-02421: missing or invalid schema authorization identifier
The query which i used is:
create schema authorization public
create table students (
surname char(15) not null,
first_name char(15),
D_O_B date,
student_no integer not null unique,
dept_no integer,
year decimal(2)
);from Database SQL Reference:
+create schema authorization schema+
(purpose) This statement lets you populate your schema with tables and views and grant privileges on those objects without having to issue multiple SQL statements in multiple transactions.
(syntax) Specify the name of the schema. The schema name must be the same as your Oracle Database username.

Similar Messages

  • How to overwrite a log and bad file in external table in oracle 10g

    Hi,
    I have used external table in oracle 10g.whenever use select query in external table orace internally create one log file in specified directory,
    but this log file is growing.How can i overwrite the log file(old to replace with new).I need overwrite a log and bad file in external table.
    kindly give the solutions.
    By
    Siva

    I don't believe that is possible with the LOGFILE clause, but it may be with the BADFILE clause. Here is an excerpt from the documentation :
    The LOGFILE clause names the file that contains messages generated by the external tables utility while it was accessing data in the datafile. If a log file already exists by the same name, the access driver reopens that log file and appends new log information to the end. This is different from bad files and discard files, which overwrite any existing file. NOLOGFILE is used to prevent creation of a log file.
    If you specify LOGFILE, you must specify a filename or you will receive an error.
    If neither LOGFILE nor NOLOGFILE is specified, the default is to create a log file. The name of the file will be the table name followed by _%p and it will have an extension of .log.

  • How to migrate a table from ORACLE 10g to 8i

    have table named 'liuxg_tab_01' in 10g.
    This morning I exported this table using 'exp' and then tried to imp it into 8i, I failed.
    After a while, I created a database link named 'ctf' in 8i which connected to 10g. I issued 'create table test as selct * from liuxg_tab_01@ctf',it returns 'ORA-01723'.
    Then I extraced the DDL of 'liuxg_tab_01' from 10g with QUEST TAOD, it's:
    CREATE TABLE LIUXG_TAB_01
    OWNER VARCHAR2(30 BYTE),
    OBJECT_NAME VARCHAR2(30 BYTE),
    SUBOBJECT_NAME VARCHAR2(30 BYTE),
    OBJECT_ID NUMBER,
    DATA_OBJECT_ID NUMBER,
    OBJECT_TYPE VARCHAR2(19 BYTE),
    CREATED DATE,
    LAST_DDL_TIME DATE,
    TIMESTAMP VARCHAR2(19 BYTE),
    STATUS VARCHAR2(7 BYTE),
    TEMPORARY VARCHAR2(1 BYTE),
    GENERATED VARCHAR2(1 BYTE),
    SECONDARY VARCHAR2(1 BYTE)
    But I can not create a table using the upper DDL in 8i if I do not wipe off those "BYTES".
    After creation of the table using the upper DDL without those 'BYTES', I sucessfully executed 'insert into LIUXG_TAB_01 select * from liuxg_tab_01@ctf'.
    Anyone has a better method to move a table from ORACLE 10g to 8i?

    1) The particular version of 8i and 10g in use here would be useful. I'm not sure that Oracle supports database links between any version of 8i and any version of 10g, though, so you're probably lucky that it worked as well as it did.
    10g 10.1.0.3.0 and 8i 8.1.7.0.0
    2) What version of the export utility did you use? You would need to use the 8i version to generate the dump file to have any chance of working, not the 10g verion.
    I use the 'exp' provided with 10g 10.1.0.3.0 and 'imp' with 8i 8.1.7.0.0. I have tried to export data directly from 10g 10.1.0.3.0 using 'exp' provided with 8i 8.1.7.0.0. Failed.
    3) Why? Since 8i is desupported, there isn't a lot of call for tools to move data from supported releases to unsupported releases.
    We have an 8i DB which is still porivding insentive services. We just wanna migrate some tales from 10g to it.
    FYI, NLS_LENGTH_SEMANTICS was introduced in 9i, so it's no suprise that 8i objected to the BYTE keyword in the DDL.
    What's FYI :P
    Another option would be to generate a CSV file of the data from 10g and use SQL*Loader to load it into 8i. Not sure this would be any easier, though.
    Justin
    Message was edited by:
    user510846

  • How to hide the data in particular table in oracle 10g

    How to hide the data in particular table in oracle 10g
    i want steps

    If its on Report u can  always hide the column - Keyfigure or Selection - Display - Hide......y do u want to have it on the report if it is to be hided in the first place?

  • Retrieve data from a large table from ORACLE 10g

    I am working with a Microsoft Visual Studio Project that requires to retrieve data from a large table from Oracle 10g database and export the data into the hard drive.
    The problem here is that I am not able to connect to the database directly because of license issue but I can use a third party API to retrieve data from the database. This API has sufficient previllege/license permission on to the database to perform retrieval of data. So, I am not able to use DTS/SSIS or other tool to import data from the database directly connecting to it.
    Here my approach is...first retrieve the data using the API into a .net DataTable and then dump the records from it into the hard drive in a specific format (might be in Excel file/ another SQL server database).
    When I try to retrieve the data from a large table having over 13 lacs records (3-4 GB) in a data table using the visual studio project, I get an Out of memory exception.
    But is there any better way to retrieve the records chunk by chunk and do the export without loosing the state of the data in the table?
    Any help on this problem will be highly appriciated.
    Thanks in advance...
    -Jahedur Rahman
    Edited by: Jahedur on May 16, 2010 11:42 PM

    Girish...Thanks for your reply...But I am sorry for the confusions. Let me explain that...
    1."export the data into another media into the hard drive."
    What does it mean by this line i.e. another media into hard drive???
    ANS: Sorry...I just want to write the data in a file or in a table in SQL server database.
    2."I am not able to connect to the database directly because of license issue"
    huh?? I never heard this question that a user is not able to connect the db because of license. What error / message you are getting?
    ANS: My company uses a 3rd party application that uses ORACLE 10g. And my compnay is licensed to use the 3rd party application (APP+Database is a package) and did not purchased ORACLE license to use directly. So I will not connect to the database directly.
    3.I am not sure which API is you are talking about, but i am running an application of the visual studio data grid or similar kind of controls; in which i can select (select query) as many rows as i needed; no issue.
    ANS: This API is provided by the 3rd party application vendor. I can pass a query to it and it returns a datatable.
    4."better way to retrieve the records chunk by chunk and do the export without loosing the state of the data in the table?"
    ANS: As I get a system error (out of memory) when I select all rows in a datatable at a time, I wanted to retrieve the data in multiple phases.
    E.g: 1 to 20,000 records in 1st phase
    20,001 to 40,000 records in 2nd phase
    40,001 to ...... records in 3nd phase
    and so on...
    Please let me know if this does not clarify your confusions... :)
    Thanks...
    -Jahedur Rahman
    Edited by: user13114507 on May 12, 2010 11:28 PM

  • How to provide access to  v$tables in oracle 10g to user

    Hi,
    can any one suggest me how to provide access to v$tables in oracle 10g to user .
    its requried for auditor.
    PLease help me.
    regards

    user12009184 wrote:
    HI have to provide access to all V$ tables
    it required for configuration of new tool.
    ThanksYou can grant it the select catalog role to the user. It should provide all the required access to the general v$* & dba_* views.
    GRANT SELECT_CATALOG_ROLE TO USER;
    Let me know if this helps.
    Regards,
    Rizwan

  • Replication of table from Oracle 10g to sql server 2000

    Could i replicate table from Oracle 10g to sql server online. we have tables with same configuration and if any change happen in oracle 10g or sql server in that table we need to replicate that change to other database.
    What is the solution for this two way replication between sql server and Oracle 10g

    But the tutorial is saying that i will have to install Oracle database on the server already having sql server, is it client or whole database, if it is then it will acquire lot of resource.
    I want to find out that for Heterogenous Service ODBC, we need third party software for ODBC Driver of SQL SERVER for Linux and secondly if we use Transparent Gateway then what are the steps for its configuration.
    I could not find steps of configuration of Transoparent gateway, when i am trying to install Transparent gateway from Universal installer, it is not there. where do i find it , Do i need to purchase it too.

  • Already existing tables in oracle 10g problem

    Hi, i am new to oracle and just installed oracle 10g, my porblem is that when i ran the query i got an error.
    SQL> select *
    2 from emp;
    from emp
    ERROR at line 2:
    ORA-00942: table or view does not exist
    As emp table already exist in database but it does not show result. please help me. Thanks.

    i have heared form someone that i should copy some text (from files) or some files which resides in bin folder (i don't know the exact path) in the sql console to access existing tables. is that ture?Not sure what that means... to access existing tables, or to create new ones you have to use Sql commands (or some graphic stuff).
    What about reading some documentation ?
    System user is a DBA, and can possibly read any tables, but most probably is not the owner of emp table. To know it you can do
    SQL> select owner from dba_tables where table_name='EMP';
    then connect to that user, or, as system user, do
    SQL> select * from <owner>.emp;

  • Viewing Tables in Oracle 10g Enterprise Manager

    Hello,
    We are running Oracle 10g on a Linux Red Hat platform. We have started the dbconsole listeners to start using Enterprise Manager. The problem we are encountering is that tables that are in our schema are not showing up in Enterprise Manager. We have checked the tables using OEM and they are appearing there normally. The tables not showing were created from an object type. We are able to use DML, DDL on these tables using SQL, iSQLPlus. We appreciate any ideas. Thanks.

    Please clarify how did you check the tables in 10g using EM dbconsole.
    Please post some screen capture of you login using sqlplus and shown the table is there for example,
    %sqlplus test/test1
    SQL*Plus: Release 10.1.0.2.0 - Production on Wed Jun 4 15:39:22 2008
    Copyright (c) 1982, 2004, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    TEST@rman>select table_name from user_tables where table_name='A1';
    TABLE_NAME
    A1

  • Partitioning of table in oracle 10g - How to Add

    Hello Friends ,
    Hope you are all fine and doing great.
    By the way - I have a quick question on oracle 10g Partitioning of tables...
    I have a table with partition as stated below ..
    CREATE TABLE X_ACC_ASSETS_GPC_AGG
    X_ACC_ASSETS_GPC_AGG_RK NUMBER(10) NOT NULL,
    X_AS_OF_DT DATE NOT NULL,
    ACCOUNT_RK NUMBER(10) NOT NULL,
    X_UNIV_ACCOUNT_ID NUMBER(10),
    ACCOUNT_ID VARCHAR2(10 BYTE),
    X_ASSET_TYPE_CD VARCHAR2(6 BYTE),
    X_AUC_AMT NUMBER(18,5),
    X_FIRM_AMT NUMBER(18,5),
    X_ADJ_SRCE_AMT NUMBER(18,5),
    PROCESSED_DTTM DATE
    )PARTITION BY RANGE (X_AS_OF_DT)
    PARTITION P200712 VALUES LESS THAN (TO_DATE(' 2008-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
    NOLOGGING
    NOCOMPRESS
    TABLESPACE KAW_DATA
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    BUFFER_POOL DEFAULT
    PARTITION P201112
    NOLOGGING
    NOCOMPRESS
    TABLESPACE KAW_DATA
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    BUFFER_POOL DEFAULT
    PARTITION PMAX
    NOLOGGING
    NOCOMPRESS
    TABLESPACE KAW_DATA
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    BUFFER_POOL DEFAULT
    )NOPARALLEL;
    My question is :
    1) How to add a partition say P201201 ..
    Since I have already stated PARTITION PMAX can I still add partition?
    2) Can I add partition even though the table has data ?
    ==========================
    I tried to add partition ..say
    ALTER TABLE X_ACC ADD PARTITION P201201 VALUES LESS THAN
    (TO_DATE(' 2012-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
    NOLOGGING
    NOCOMPRESS
    TABLESPACE KAW_DATA
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    BUFFER_POOL DEFAULT
    but getting the error ..
    "partition bound must collate higher than that of the last partition"
    Thanks/kumar

    You have partitions
    200712
    200812
    200912
    201012
    201112
    PMAX.
    so your condition for partition p201112 is '201012-01-01' to '201112-01-01' i.e the values between these two dates will be in partition p201112. and then everything else will be in PMAX. So now you are splitting your pmax.
    alter table X_acc split partition pmax at ( to_date('2012-01-01 00:00:00','YYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN') )
    into (partition p201201, partition pmax); The condition you have to change. I just showed as an example. It could be the date range between two dates or it could be greater than a date value. It is upto how you want this new partition.
    how to add partition between two partition
    Edited by: pransuj on Mar 25, 2011 11:13 AM
    Edited by: pransuj on Mar 25, 2011 11:14 AM

  • Error accessing table on Oracle 10g Express Edition

    I am unable to access tables uploaded after Oracle 10G express edition installation.
    The error message is ""ORA-00942: table or view does not exist"
    Meanwhile, the table is in existence when viewed via object browser.
    Pls can anybody help out.

    Hi;
    Which user you try to query? Table under which schema?
    You can query as follows:
    SELECT
    TABLE_NAME
    FROM
    ALL_TABLES
    WHERE
    TABLE_NAME LIKE '%xxx%'
    ORDER
    BY TABLE_NAME;
    Regard
    Helios

  • External table in Oracle 10g and Windows server 2003 problem

    I'm having a problem accessing an external table in an Oracle 10g and Windows 2003 server environment. The disk is remote (mapped) to the server. It's the usual access errors, kup-04001 or kup-04063.
    I have the [seemingly] exact same setup in an Oracle 9i and Windows 2000 server environment which works perfectly. Services run as local SYSTEM and SYSTEM has full permissions on the disk. Directories exist and so do the permissions to the directories.
    In the Oracle 10g and Windows 2003 environment, services run as local SYSTEM and SYSTEM has full permissions on the mapped disk. Directories exist and so do the permissions to the directories.
    This obviously effects mappings, deployments, etc.
    Does anyone know if something changed in either the db or the os?
    Thank you,
    Michael

    Thank you for your reply.
    Your proposal is the standard solution. As a matter of fact, that's how it is on my "old" system. Server "A" Oracle services are started by SYSTEM. Server "B" Oracle services are started by SYSTEM and is where the flat files reside. SYSTEM has full permissions on a disk local to Server "B". Database directoriies defined on Server "A" point to Server "B" remote disk. External Tables on Server "A" are defined with directories that point to Server "B" remote (mapped) disk. I have no problems with this configuration.
    I'm having a problem acheiving the same configuration with Oracle 10g and Windows 2003. I guess I'm baffled over the fact it isn't working the same way as my "old" environment. Why shouldn't it? Oracle (and you) want me to start services as a specific user. It shouldn't have to be that way unless something changed in the way the database makes calls to the os or if Microsoft slipped something in with one of it's numerous security patches.

  • Error in Drop Table in Oracle 10G

    Hi All,
    When I try to drop any of the table in one of the oracle 10G database schema
    I am getting the following error.
    As for I know this error will come in PL/SQL cursor block if the exact fetch returns more than one row.
    Can any one explained the reason for this...
    Error on line 0
    DROP TABLE "TMP_GL_DATA2"
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01422: exact fetch returns more than requested number of rows
    Thanks in advance..
    Regards
    Karthik...

    Fix the error in your DDL trigger.

  • Recover Table in Oracle 10G - Very Urgent--Kindly Help

    Hi Guru
    I m using oracle 10G R2 in Unix. One of the user has unfortunately updated the table with wrong dataa aand hence we need to recover the table.
    Our DB does not have flashbaack databaase option on.
    For recovering the table using Flashback table point in time recovery, do we reqquire flaashback database option on?
    If so then how can i recover the table?
    Can i recover it theough RMAN??
    Kindly Advise.
    Thanks
    Ram
    Edited by: user448837 on Jan 8, 2010 5:55 PM

    I understand, but your post implies ("Because I have..") that you need to set a proper value for DB_FLASHBACK_RETENTION_TARGET for FLASHBACK TABLE to work and this is not the case.
    For example:
    SQL> ALTER SYSTEM SET DB_FLASHBACK_RETENTION_TARGET=1;
    System altered.
    SQL> CREATE TABLE TEST AS SELECT * FROM DUAL;
    Table created.
    SQL> ALTER TABLE TEST ENABLE ROW MOVEMENT;
    Table altered.
    SQL> SHOW PARAMETER DB_FLASHBACK
    NAME                                 TYPE        VALUE
    db_flashback_retention_target        integer     1
    SQL> SHOW PARAMETER UNDO
    NAME                                 TYPE        VALUE
    undo_management                      string      AUTO
    undo_retention                       integer     86400
    undo_tablespace                      string      UNDOTBS
    SQL> DELETE FROM TEST;
    1 row deleted.
    SQL> COMMIT;
    Commit complete.
    SQL> BEGIN DBMS_LOCK.SLEEP(120); END;
      2  /
    PL/SQL procedure successfully completed.
    SQL> FLASHBACK TABLE TEST TO TIMESTAMP SYSTIMESTAMP - INTERVAL '2' MINUTE; 
    Flashback complete.
    SQL> SELECT * FROM TEST;
    D
    X

  • When using dmstool cannot view ohs_Server metric table in Oracle 10g

    Hi,
    My application runs on Oracle 10g App server,
    when i tried this command dmstool -table -list
    The metric table ohs_server is not getting listed...
    I am sure that Oracle HTTP server is running, i confirmed this by using the command opmnctl status : which shows HTTP Server - alive
    also using dmstool -t opmn_process which shows Oracle HTTP server is running...
    Where i can get other metric table info like JVM, why i can't get the information about ohs_server
    Plz help me over this.
    Regards.,
    Deepak.C

    Hi.,
    Any Help to metric info for Oracle HTTP Server, it's not working still !!!
    Any config needs to be changed for Oracle HTTP Server to make the inforamation available ???

Maybe you are looking for

  • Retrieving images for a java game

    i am currently trying to make a game whereby i have to retrieve images from a file and display it to the screen. I am able to do this using applets but the game i am implementing does not use applets - it only makes use of awt and swing components. a

  • Reconnecting in SQL Developer issue

    Every time there is a change in my computers connection (unplugging from dock and connecting to wifi and vice versa, putting computer to sleep and wake up again, etc.) the schema connections in the Oracle SQL Developer are lost. 1. I can choose to re

  • Urgent: XL to text conversion

    Hi Guru,   Please help me for changing the BEx results into text format.   Client wants to see the results in text format with the field separator ^. Ex: <u>BEx Result</u>: RegionProduct: File Name: RegionProduct.xl Format: North America Poultry 04-2

  • Computer crashed i reinstalled CS5 but it will not take my serial number

    My computer crashed and I reinstalled CS5 from the download sight. I have a license for two computers which was installed on two iMac computers. The one iMac crashed and I could not get in my hard drive, so I purchased a MacBook Pro. I called Adobe a

  • Newbie ? - Recoverying Database

    Hello- I'm new to Oracle (using 9i) and am running into an issue that I'm hoping someone with more experience can take mercy on me and help me out with. =) I'm been trying to clone and a production database for a test system and have finally been abl