Can we create external table from an existing database table ?

Hi everyone,
As i understand, its possible to create a new table based on an existing table without copying any values from it, using the following command;
CREATE TABLE newtable AS
(SELECT * FROM oldtable WHERE 1=2);
I would like to know whether we can do a similar thing with external tables. That is to create an external table with the same columns as of an existing table.
Thanks in advance for your answers.

You need to clear conception about external table.
http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/utility.htm#sthref1800
http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/tables.htm#sthref2448

Similar Messages

  • Script to create tables from  an existing database

    I need a script to create tables without storage parameters from existing database

    Please repost your question in the database forum, General Database Discussions

  • How to create a table from an existing table with new column

    Hi !
    Please help me.
    I want to create a table from an existing table with data and add two new column to the new table.
    What will be the syntax?

    craete table new_table as select a.*, 'somevalue' new_col1, 'somevalue'
    new_col2 from old_table a;Also there is a pitfall - newly created table will accept column type and precision from the select statement, so further you can be needed to modify columns
    if you want to have VARCHAR2 instead of CHAR for example:
    SQL> create table new_dept as select dept.*, 'New data' new_col from dept;
    Table created.
    SQL> desc new_dept
    Name                                      Null?    Type
    DEPTNO                                             NUMBER(2)
    DNAME                                              VARCHAR2(14)
    LOC                                                VARCHAR2(13)
    NEW_COL                                            CHAR(8)
    SQL> alter table new_dept modify (new_col varchar2(8));
    Table altered.
    SQL> desc new_dept
    Name                                      Null?    Type
    DEPTNO                                             NUMBER(2)
    DNAME                                              VARCHAR2(14)
    LOC                                                VARCHAR2(13)
    NEW_COL                                            VARCHAR2(8)Rgds.
    Didn't see michael's post - it reflects the fix for this problem using CAST.
    Message was edited by:
    dnikiforov

  • How to create table(s)/indexes on a new database from an existing database

    Hello all - I need some help in finishing a task, quick response is really appreciated
    So, I have a new database that needs creation of tables including indexes and objects for two different tablespaces called CDS1 and CSD2. I have created these tablespaces and datafiles associated with them. I need some help just to create these tables and indexes from an existing database without copying any of its contents. How can I achieve this, these are 2 different servers at different locations. Can somebody give me step by step instruction - would greatly appreciate it !
    Thanks,
    Vikas

    9876543210 wrote:
    Hello all - I need some help in finishing a task, quick response is really appreciated
    So, I have a new database that needs creation of tables including indexes and objects for two different tablespaces called CDS1 and CSD2. I have created these tablespaces and datafiles associated with them. I need some help just to create these tables and indexes from an existing database without copying any of its contents. How can I achieve this, these are 2 different servers at different locations. Can somebody give me step by step instruction - would greatly appreciate it !
    Thanks,
    Vikas
    exp help=yes
    exp username/password rows=no
    How do I ask a question on the forums?
    https://forums.oracle.com/message/9362002#9362002

  • Can i create External Table dynamically

    Hi,
    Is it possible to create External Table dynamically ?
    I want to use the following dynamically to create External Table.
    1) fields
    2) field position
    3) file location
    Thanks

    The answer shouldn't be very different of already given answers in your Can i create external table dynamically? of the last month, is it ?
    And question is still same : why wanted such thing ?
    Nicolas.

  • How to create a Group from an existing email -

    I just want to create a Group from an existing email received.  Don't want to add people individually to Address Book, then drag them to the Group.  Would prefer to copy/paste the addresses into the Group.  I'm part of a team at work wth 25 people!  Do I really have to add their addresses individually?  Seems ridiculous.  Don't even need their names - just the emails, so when I type in "United," for example, I get all the folks in that Group which is named "United."
    Thanks.

    There was a "magical" set of Applescripts that would have done that, but it no longer works.
    There is no way in the OS to do that besides making the Applescript yourself using the current Script Editor.
    Another way to do what you want is to select all of the addresses (select one, then cmd-A). Then, drag the selection to somewhere in the Finder. That will create a text clipping. You can then drag that text clipping into the address field in Mail.
    The text clipping will be named with the first few email addresses. You can rename it in the Finder.
    Each one can be your own "distribution" list.

  • How can i create proxy service from another proxy on different domain

    i have a demo webservice. it has many operations on proxy service's message flow. How can i create proxy service from demo's wsdl on different domain
    Edited by: fresh man on Jul 1, 2012 11:17 PM

    You can either export the WSDL in a sbconfig.jar and then import this sbconfig.jar in the new domain. Then you can create a new Proxy in new domain based on the WSDL you imported.
    Alternatively, you can open the WSDL in the old domain, copy the text content of WSDL, then open new domain sbconsole and create a new WSDL type resource and paste the content you copied from old domain WSDL here. Then you can create a new Proxy Service based on this WSDL resource you created.
    Although, may I ask why do you need to create this new Proxy Service on a different domain? If you want to create a service similar to existing Proxy Service on different domain, then you can export the existing proxy service along with any dependencies to a sbconfig.jar and them import them in any other domain.
    If you want your new Proxy Service to invoke the existing Proxy on different domain, then you need to create a Business Service in the new domain (calling domain) which can invoke your existing Proxy service in other domain.

  • Create an user from the existing user.

    Hi All,
    Recently i have created one user from the existing user in a different server.
    Oracle version :10.2.0.1.0
    I have granted the similar roles same as in production.
    In Production:
    SQL> select granted_role,grantee from dba_role_privs where grantee in ('TRADELOANS');
    GRANTED_ROLE                   GRANTEE
    RESOURCE                       TRADELOANS
    CONNECT                        TRADELOANS
    In Test:
    SQL> select granted_role,grantee from dba_role_privs where grantee in ('TRADELOANS');
    GRANTED_ROLE                   GRANTEE
    RESOURCE                       TRADELOANS
    CONNECT                        TRADELOANS
    But the user complained that he is getting error like 'user lacks CREATE SESSSION privilege'. He also says he is able to connect to production but for the test he is getting that error
    Can anybody let me know where i have done the mistake?
    Regards
    Arun

    arundba wrote:
    Hi Kamran,
    I listed the roles given to the user in my first post. I have granted connect and resource role to the user.
    and it is same in production also. But the thing is why he is able to connect to production and not for test?
    Regards
    ArunSee the following demonstration:
    SQL> create user t identified by t;
    User created.
    SQL> connect t/t
    ERROR:
    ORA-01045: user T lacks CREATE SESSION privilege; logon denied
    Warning: You are no longer connected to ORACLE.
    SQL> conn / as sysdba
    Connected.
    SQL> grant connect to t;
    Grant succeeded.
    SQL> conn t/t
    Connected.
    SQL>

  • BAPI:Create sales order from an existing open sales order for open items

    Dear All,
    Could any one suggest me any BAPI that can create sales order from an existing OPEN sales order for OPEN items. since we are closing all open orders and creating new orders with reference to existing open orders.   please suggest, its would be great help.
    Regards,
    Reddy

    hi suresh,
    we are changing tax procedure from formula to condition based, so this is the reason we have close all the open orders and recreate in TAXINN procedure, it is going to be large number of records( open orders), so....
    Regards,
    Reddy

  • How can I create a link from a CHM file to a webhelp file?

    How can I create a link from a CHM file to a webhelp file?
    The CHM output (accreditation.chm) is stored in a parent directory, and the webhelp output (index.htm) is stored in a child directory.

    Open the usual Link dialog and enter the relative path from where the CHM will be installed to where the webhelp will be installed.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Can we create service po from sales order

    HI
    can we create sales order from service po. if yes then how can we do so.

    Hi,
    we can create po from sales order in cross docking functionality.
    The steps are
    Sales order > Purcahse requistion > Purchase order > Inbound delivery with reference to purchase order and PGR > Outbound delivery with refernce to sales order and PGI > Invoice and billing.
    Br,
    Tushar Patankar

  • Can we create a hierarchy based on two logical table in 10g RPD

    Hi,
    I have a question, please give me some clarity, about creating hierarchy,
    I know we can create a hierarchy based on one logical table which is form by two physical table...
    Can we create a hierarchy based on two logical table? If yes, and how?
    Thanks in advance!
    anne

    Use preffered drill paths...
    -suman

  • Can not open JPEG files and can not create JPEG files from other software

    Can not open JPEG files and can not create JPEG files from other software (For example from Solidworks).
    When I try to right click on a JPEG, a notice window appears written: "Windows Explorer has stopped working - Windows is
    checking for a solution to the problem" and then the notice box disapears, the desktop appears and I can continue working.
    From the other side - If I try to save as JPEG a screen of Solidworks (like a view of a part) the Solidworks falls but the JPEG
    is created (I can see its name in the directory I created it).
    I can open the JPEGS with the Paint software if I want but not with the Windows Photo Viewer.
    I have the feeling that the Windows Photo Viewer disapeared from my computer - just a feeling.
    I will appreciate your assistance.
    Avi T. 2014

    Hi,
    Did Windows Photo Viewer option appear when you right click the JPEG file and select open with?
    I would like suggest you use Clean Boot to troubleshoot if there is third-party software conflict:
    How to perform a clean boot in Windows
    http://support.microsoft.com/kb/929135
    Karen Hu
    TechNet Community Support

  • Can't create a pdf from a Word docx

    I downloaded the trial version of acrobat pro dc but it will not allow me to create a pdf.  it says to use the print to pdf option but that is not available.  i reinstalled it but that did not fix it.

    Hi Rahul,  please see my answers below:
    Are you using 64bit version of office 2010? - 32bit version
    Are you able to convert any other file type into pdf format? - jpgs convert to pdf but no other Office file type will
    Also, Do you see any 'convert to Adobe pdf' option when you right click a .docx file? - yes the options are there when I right-click but I get a message saying: "Unable to find "Adobe PDF" Printer or "Acrobat Distiller" printer.
    Thanks,
    John
    Software Support Specialist
    Ext. 6332
    [email protected]
    >>> RahulTyagi4you <[email protected]> 4/18/2015 6:04 AM >>>
    Can't create a pdf from a Word docx created by RahulTyagi4you ( https://forums.adobe.com/people/RahulTyagi4you ) in Document Cloud PDF services - View the full discussion ( https://forums.adobe.com/message/7449723#7449723 )
    Hi johnm82926422 ( https://forums.adobe.com/people/johnm82926422 ),
    I need to know certain things in order to assist you more accurately...!!
    Are you using 64bit version of office 2010?
    Are you able to convert any other file type into pdf format?
    Also, Do you see any 'convert to Adobe pdf' option when you right click a .docx file?
    Regards,
    Rahul
    If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7449723#7449723 and clicking ‘Correct’ below the answer
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7449723#7449723
    To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
    Start a new discussion in Document Cloud PDF services by email ( mailto:[email protected]jivesoftware.com ) or at Adobe Community ( https://forums.adobe.com/choose-container.jspa?contentType=1&containerType=14&container=48 70 )
    For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • Can I create pdf files from Outlook 2003 messages with Acrobat XI Standard?

    Can I create pdf files from Outlook 2003 messages with Acrobat XI Standard?

    Yes, Outlook 2003 is compatible with Acrobat XI Standard and you can create PDFs from emails.
    For reference: http://helpx.adobe.com/acrobat/kb/compatible-web-browsers-pdfmaker-applications.html

Maybe you are looking for

  • Dynamically binding VO Parameter from Context Switcher

    Hi guys, I am using ADF JSF and BC, and I have a situation here which is: 1) My JSF page has a panel page component, inside it is a navigable form referencing a View Object. 2) In the contextSwitcher facet of this PanelPage, i have a SelectInputText

  • Where did my calendars go when I switched to Lion/iCloud?

    I just switched to Lion and iCloud, because of the imminent loss of MobileMe's calendar sync'ing, and found that iCal failed to import a number of calendars that I had stored in MobileMe.  I went to me.com, converted to iCloud there, and saw it say t

  • My browser hides automatically when run my form ?

    hi all , xp sp3 database 10g rel2 developer 10g rel2 jre6 and jinitiator 1.3.1.22 installed together when trying to run a form , my browser appears , then closed automatically ,without running the form , or any message or error ? thanks

  • In Smart forms How to print address

    Hi all, If we have Multiple line items and if all the line items have the same address  then address should be printed at Header level if not all the line items are holding different address then that address should be printed at line item level. and

  • What happened to the drop-down boxes?

    the drop-down boxes will appear for an instant then quickly reappear. This happens only with Mozilla Firefox