How to make a copy of a table?

I wonder how to get a copy of a table in apex.
At first I think there must be created a page process. The sql-code would be Create table "TABLE2" as select * from TABLE1. But the page process must be defined as an PL/SQL anonymous block and unfortunately my knowledge of PL/SQL is very small. Could anybody advise me which code for the anonymous block has to be taken for that?

Imagine your accounting department runs a normal bookkeeping. There are some bookings which occur month for month or quarter by quarter. The accountant mourns that he has to give in always the same data and my idea is to tell him that we will take a second table with these repeating bookings and once a month he unions this table with the master table to get the complete ledger. But we cannot use the repeat-table itself because it may differ from month to month. So we have to take a copy table for one month and next month we need a new copy. This means that we have to provide 12 tables for a year with 12 regions what is not so horrible as it sounds as we can use hide&show regions.
Michael

Similar Messages

  • How to make a copy of a table in oracle?.

    I have a table.
    I would like to make an exact copy of the table (except for different name of the table) ..basically like a backup.
    Thanks!

    SQL> create table new_table_name as select * from old_table_name ;will create the new table with data populated. You need to create any primary key/foreign keys, constraints and indexes afterwards.
    if you are on 9i or later, you can also use dbms_metadata.get_ddl to get the complete ddl for the existing table and change the table name and constraint names to get exact structure as the old one.

  • How to make a copy of a legal size document on HP Officejet Pro 8600

    How to make a copy of a legal size doucment on HP Officejet Pro 8600 e-All-in-One?

    Hi,
    Please try
    (a) Load legal size papers onto the input tray (you have to extent the tray from the blue/cyan part to fit legal size papers),
    (b) Load original face up on the ADF,
    (b) Touch copy,
    (e) Touch Settings (now you can change size and few other options,
    (f) Touch Black or Colors to copy.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • HOW TO MAKE THE CONTENT OF THE TABLE PRINT IN A TABLE CONTROL SCREEN?

    Can any one tell me how to make the content of the table control print in a table control screen!!?
    Please help!!
    I have to make the contents of a table in the table control screen print ? any idea
    Regards,
    Vj

    Please refer to Demo Program,
    DEMO_DYNPRO_TABCONT_LOOP
    Its very clear.
    Shreekant

  • Anyone know how to make vertical text in a table in keynote?

    anyone know how to make vertical text in a table in keynote?

    Just to add a bit more about this question. I have seen in other related questions that this feature (vertical text) is not available in (apparently) the whole iWork09. someone even said that it should be asked to the developers, so they include this feature in iWork10. I find this issue a bit sad. This feature has been present in msOffice since a while, and at least for me, this is quite important for my work. It is also apparently not possible to have different page orientation in the same document, meaning portrait and landscape, so one can have wide tables in a whole page, for example. If this is true, it is again sad, and I just cannot understand why such a basic feature is not available in an already 09 version. I am using only the trial version of iWork, but already in the first day I have discovered that I actually cannot do what I was used to. Again sadly I (and many others I guess) will have to stick to Office until the mac software is fully developed.

  • How to make a copy of an instance of a class?

    Hi,
    If I create a somethingk like a datagrid and filled it with data during runtime, and then I would like to display the datagrid in another place at the same time. So how to make a copy of the datagrid with the data filled?
    Thanks.

    Hi webvalue, do you wish to display the same data that this DataGrid is using? If so just create a new DataGrid instance and give it the same data as its dataProvider. For example the code below uses two DataGrids that both consume the same data:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                    layout="absolute"
                    applicationComplete="init(event)">
        <mx:Script>
            <![CDATA[
                [Bindable]
                private var _dp        :Array;
                private function init(e:Event):void
                    _dp = [
                            {label:"FlashGen.Com", data:"http://www.flashgen.com"},
                            {label:"Adobe", data:"http://www.adobe.com"},
                            {label:"Flex.org", data:"http://www.flex.org"},
            ]]>
        </mx:Script>
        <mx:Panel x="10" y="10" width="600" height="207" layout="absolute" title="Multiple DataGrids using the same data source">
            <mx:DataGrid id="dg2" dataProvider="{_dp}"  left="0" top="0" bottom="0" width="50%"/>
            <mx:DataGrid id="dg1" dataProvider="{_dp}" right="0" bottom="0" width="50%" top="0"/>
        </mx:Panel>
    </mx:Application>
    Cloning a DataGrid component doesn't seem to be the right solution given the information you have provided. If you wanted to reuse the DataGrid in a separate view you could always reparent it to the new view by removing it from the current views displaylist and adding it to the new views displaylist like the example below illustrates, here I'm moving the DataGrid (dg) from one Panel component (dghost) to another (dghost2):
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                    layout="absolute"
                    applicationComplete="init(event)">
        <mx:Script>
            <![CDATA[
                [Bindable]
                private var _dp        :Array;
                private function init(e:Event):void
                    _dp = [
                            {label:"FlashGen.Com", data:"http://www.flashgen.com"},
                            {label:"Adobe", data:"http://www.adobe.com"},
                            {label:"Flex.org", data:"http://www.flex.org"},
                private function moveDataGrid(e:MouseEvent):void
                    dghost.removeChild(dg);
                    dghost2.addChild(dg);
            ]]>
        </mx:Script>
        <mx:Panel id="dghost" x="10" y="10" width="300" height="207" layout="absolute" title="DataGrids original parent container">
            <mx:DataGrid id="dg" dataProvider="{_dp}" right="0" bottom="0" top="0" left="0"/>
            <mx:ControlBar>
                <mx:Button label="Move DataGrid" click="moveDataGrid(event)"/>
            </mx:ControlBar>
        </mx:Panel>
        <mx:Panel id="dghost2" x="10" y="225" width="300" height="207" layout="absolute" title="DataGrids original parent container">
        </mx:Panel>
    </mx:Application>
    While you could clone the DataGrid, when dealing with display objects it's often easier to reparent them as you are only moving it from one view to another; this has the added benefit of saving on memory as you still only have the original instance of the DataGrid not that instance and a new "cloned" instance.
    I hope that helps provide additional options beyond just cloning
    regards
    m
    Mike Jones
    FlashGen.Com
    Adobe Community Expert For Flex
    Adobe Certified Expert for Flex 3 & AIR
    w./ www.flashgen.com
    b./ blog.flashgen.com
    Catch Me At
    Scotch on the Rocks London '09
    Flash on the Beach Brighton '09
    Author Of Developing Flex Components
    Addison-Wesley (Q4 / 2009)

  • How to make a copy of an existing BSP application

    Hi Experts,
    I am working on Web UI WB where i am tyring to make enhanchments as per the clients requirment. I have created new enhanchment set, however i am unable to understand how to make a copy of existing BSP application to make the required changes. Can someone let me know the procedure on how to copy the BSP and make the changes in the methods.
    I am using the TCODE BSP_WD_CMPWB then the component BT108H_LEA
    Thank you
    Leela

    Hi,
    I am trying to rename LEAD with Constituent in Web ui and for that purpose i have created ZClass in Web UIWorkBench, I am able to make changes to the related Method in the Zclass where i have replaced the string with Constituent. Now when i open Webui i see Lead overview page with the description as ConstituentBPLEAD. Can some one let me know how to remove BPLead from the description. I am putting across the code that i have incorporated in the method.
    method IF_BSP_WD_HISTORY_STATE_DESCR~GET_STATE_DESCRIPTION.
    CALL METHOD SUPER->IF_BSP_WD_HISTORY_STATE_DESCR~GET_STATE_DESCRIPTION
    EXPORTING
    IV_CURRENT_DESCRIPTION = IV_CURRENT_DESCRIPTION
    RECEIVING
    DESCRIPTION = DESCRIPTION
    Data corp_descr type string.
    corp_descr = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_MASTER/TITLE' ).
    if description cs corp_descr.
    replace corp_descr with 'Constituent' into description.
    endif.
    endmethod.
    Thanks
    Leela

  • How to make a copy of one company to another

    hi
         i want to have a backup of one company! can anyone help me how to make a copy of an existing company

    Hi,
    you can use the SQL backup and restore
    if you use SQL 2000, open Enterprise manager, right click on the company DB that you wish to back up and choose "all tasks" -> "Backup Database"
    then click "Add" and select the name of your backup
    then press OK and you just made a backup of your company DB.
    for duplicating DB, just create a new empty sql DB and right click on it->All tasks->select Restore database -> select from device -> clickon from device and select the backuped DB to duplicate.
    go to the option tab and make sure the restore path is correct and that Force restore is marked.
    hope it helps
    let me know if you need more info
    Moty Moshin

  • How to make a copy of an application with its schema-tables,data and all

    Good day,
    I am looking for the best way to make a copy of an application from one computer to another, including the schema (tables, data and all) in Apex3.2.
    I can only manage to make a copy of the application without the data using the export utility
    Please assist with this difficulty
    Kind Regards
    Thabo
    Edited by: Thabo K on Jun 1, 2009 1:13 AM

    Hello,
    To copy across the data you can use the traditional EXP/IMP or the Datapump utility.
    If you're used to using EXP/IMP I'd encourage you to look at Datapump, if you haven't used EXP/IMP before I'd encourage you to look at Datapump (datapump rocks) -
    http://www.oracle-base.com/articles/10g/OracleDataPump10g.php
    There are a few major differences between Datapump and traditional EXP/IMP (EXP/IMP creates the export file on the client side, Datapump creates it on the server side etc).
    In my book "Pro Oracle Application Express" I have a section on cloning applications/data between instances, which you might find useful.
    Hope this helps,
    John.
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

  • How to make screen field enable when table control gives an error

    Hi,
        I had a scneario like when table control data wrong then one parameter of the screen should be enabled for the input, i knew that screen-name will not work since it will have always table control fields only when table control gives an error.
    How to make the other parameter enable when table control throws an error.
    Regards,
    Jaya

    Hi Gobi,
         Thanks for your response, but issue is - how to make other screen fields enable when there was an error in the table control data.
    For table control - lets say we will use the code as i mentioned above.i am sure that we cant write the code for field enable in between loop & endloop.
    as you said if we right outside the loop-endloop, the module wont be triggered when table control throws an error, because that statement was not there in the loop-endloop.
    please let me know if you need any more information on the issue. I hope there is alternative for this in SAP.
    Thanks
    Jaya

  • How to make a copy of lion on disc

    bought a new mac pro with lion installed and i want to make a copy of lion so when my hard drive goes bad i can install it whith a disc.

    Here you go:
    OS X: About Recovery Disk Assistant
    The procedure describes how to create a bootable USB flash drive, but the procedure to create a bootable DVD is similar. A DVD will take much, much longer to boot, so the USB flash drive method is preferred.
    By the way, realize that you do not need to do this if your HD needs to be replaced. As long as you have a fairly fast wireless connection you need nothing else. The download itself might take one or two hours on a ± 10 Mbps connection.

  • How to make a copy of DefaultStyledDocument Object for RTF text ?

    Hi All,
    In my application, I need to copy RTF text from Org_Default_Styled_Document to New_Default_Styled_Document (both are independent objects.)
    For this I wrote the below method :
    public DefaultStyledDocument copyRTFStyledDocument(DefaultStyledDocument  Org_Default_Styled_Document)
              DefaultStyledDocument New_Default_Styled_Document = null;
              try
                            // writing RTF byte[] to output stream.
                   ByteArrayOutputStream bOData = new ByteArrayOutputStream();
                   rtfKitEditor.write(bOData, Org_Default_Styled_Document, 0, Org_Default_Styled_Document.getLength());
                            // reading RTF byte[] from input stream.
                   ByteArrayInputStream bIData = new ByteArrayInputStream(bOData.toByteArray());
                   New_Default_Styled_Document = new DefaultStyledDocument();
                   rtfKitEditor.read(bIData, New_Default_Styled_Document, 0);
              }  catch(BadLocationException e)   {
                e.printStackTrace();
              catch(IOException e)        {
                e.printStackTrace();
           return New_Default_Styled_Document;
      }I am able to see an extra 'enter' character (i.e, "\n") added to New_Default_Styled_Document.
    I tried to figure out the problem by digging API classes like RTFEditorKit.java and RTFGenerator.java, I observed that an extra 'enter' character is adding at the below method of RTFGenerator.java
    public void writeRTFTrailer()
        throws IOException
        writeEndgroup();
        writeLineBreak();
    public void writeLineBreak()
        throws IOException
        writeRawString("\n");
        afterKeyword = false;
    }I used
    New_Default_Styled_Document.remove(Org_Default_Styled_Document_Length, 1); to remove the extra 'enter character from New_Default_Styled_Document every time. Its workaround only.
    Can any one please help me how to make a new copy / clone of DefaultStyledDocument ? Is there any alternate solution which does not add any extra character when we make a copy of DefaultStyledDocument ?
    Its very urgent. I am trying a lot.
    Thanks in advance
    Satya.

    You will need to define an Organization hierarchy.
    1. Define your company as a Business Group and define the 3 child companies as Organizations (HR Organizations).
    2. Define Organization Hierarchy with 3 child organizations as child of the Business Group. You can further add organizations as childs to those three in the hierarchy.
    3. Define 3 security profiles (Security > Profile) marking View Employees / Contingent workers / Applications / Contacts as restricted. Click in the Organization Security tab. Select the option of Secure by Organization hierarchy option. Click in Organization hierarchy and select the one defined in step 2. Click in top Organization and select Company 1 / 2 /3 for each of the Security Profile. Check the box Include Top Organization. Also select the check box Restrict on Individual assignments option. Save the security profile(s).
    4. Define 3 HR Responsibilities (e.g. Company 1 HR, Company 2 HR, Company 3 HR). Using system profile HR:Security Profile, attach corresponding security profile to each of the responsibilities. Profile value of HR: Business Group is same for all the responsibilities.
    5. Run the Concurrent Program "Security List Maintenance" for each of the security profile.
    From now, One responsibility can not view data from another Organization and its child Orgs.

  • How to make a copy of a DB and keep it updated in real time?

    Hi
    I have an Oracle Database 10g RAC and ASM on HP UX platform in the production environment and I need to make a copy of that database on another server where each transaction is updated online.
    Could you please tell me how I can do that?
    There are tools to do that?
    Thanks

    Dataguard is in Oracle Enterprise, or I need to buy something else ?
    In wiki ( not a great source I know :P )
    Data Guard supports both physical standby and logical standby  sites. Oracle Corporation makes Data Guard available only as a bundled feature included within its "Enterprise Edition" of the Oracle RDBMS.[1] Edited by: Archylus on 14/04/2010 02:32 PM

  • How to make a filter in a table while giving single character

    hi,
    i have doubt in filter how to make a filter while giving single character in a table during runtime.
       if i give string like(A*) means then how it can retrive the data from the table

    look at:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60d5b593-ba83-2910-28a9-a7a7c7f5996f

  • How to make a copy of a query?

    We can't find contex menu item to make a copy of a query when right clicking a query and can't find any picture icon/button to make it.  If someone can tell us on how to do it?
    Thanks

    Hi Kevin,
    To make a copy of the query use the "save as" option in the query designer and assign the new technical name and description.
    If you want to copy the query between 2 data targets then use the transaction RSZC.
    Bye
    Dinesh

Maybe you are looking for

  • How can i limit Safari to 1 or 2 websites on an admin user account

       We rent out rooms with sensitive data being used on our machines so I only want to allow internet access to/from a single website (yousendit.com) to controll incoming/outgoing data.    I could do this with parental controls if I set up a new user,

  • AP1142 no longer joins controller (WLC55008)

    This original post is edited to correct some factual errors, but the error remains and I still need help with my quaestion at the end!! ======= Hello! I have (and my customer) a rather "cute" problem ...  Two months ago I installed a WLC5508 with sw

  • Dead(?) hp JetDirect ex PLUS = LJ 4ML; fix or replace - and with WHAT?

    Dear fellow Mac addicts -- Some months back, various helpful souls (notably Greg Sahli) set me straight on the way to get my old serial-port hp LaserJet 4ML to be able to print from my two Tiger-Macs. For the past months, I've had an eBay-bought hp J

  • Problems creating a PDF from Word containing a Excel sheet

    When I want create a PDF (Acrobat 8 or 6) in Word 2007 it always happens that the excel sheet in the word document is a solid black box instead of the excel sheet in the created PDF. Anyone else had that problem and who can help? Thanks alot!

  • Change background color in iBooks

    Hey I'm dyslexic and I was wondering is there anyway of changing the background color in the iBooks page to yellow