create table on the production database

Hi expert I want some knowledge in real time
If a user has requested to create a table on the production database where DBA one should contact 1.
form where dba approval for create table.


Thanks and greetings
Sanat

It depends on your hierarchy of society. Generally, your immediate boss.

Tags: Database

Similar Questions

  • create table in the remote database

    Hi friends,

    Is it possible to create a table in a remote with the syntax as database

    create table - on the remote database
    in select * from tbl - table with user defined data types.

    Thank you
    Akila Mathon.

    Remote DDL operations are not allowed.

    Create a procedure on the remote database, which will create the table using

    execute immediate 'Create table table_1 as select * from table@remote_link '
    
    Example
     create procedure ddl_remote(str varchar2)
     as
     begin
       execute immediate str ;
     end ;
     /
    

    Where remote_link is the database when you call the procedure.

    Directly GRANT EXECUTE CREATE TABLE to the user in which the procedure is created.

    Call the procedure of your current database.

    begin
       ddl_remote@DB_remote('create table emp as select * from emp@remote_link ') ;
    end ;
    /
    

    HTH
    SS

  • Refresh the production database to test the database with RMAN

    Hi experts,

    I want to refresh the production database to test the database with RMAN. You can help me please how to do this.

    I saw a lot of blog on the internet but not got a satisfactory answer.

    Reg,

    Thomas verrma

    Thomas

    Follow these steps

    1. on the server target

    a. Add entry in oratab

    b. create init.ora for target db copy of source

    c. If you use catalog

    connect to the RMAN catalog, you can use the double option to clone run below

    one.

    RMAN > Connect target sys /@trgt

    RMAN > Connect Catalog rman /@catalog

    b. check that the backup connects to the source and to collect information on the elements of backup that contains the backup controlfile

    c. restore the controlfile

    RMAN > set DBID = xxxxxxxx (DBID of the source db)

    RMAN > run

    {

    allocate channels ch1 type parms 'SBT_TAPE' = 'ENV = (NB_ORA_CLIENT =, NB_ORA_SERV =)';

    Restore controlfile from "/ c-DBID-xxxxxxxx-00';

    }

    Once the controlfile is restored, you can mount the db

    change the editing of the database;

    run

    {

    until ' TO_DATE (2014-SEPT-10 10:00 ', MY - DD - YYYY HH24 ') ";

    allocate channels ch1 type parms 'SBT_TAPE' = 'ENV = (NB_ORA_CLIENT =, NB_ORA_SERV =)';

    restore the database;

    recover the database;

    }

    ALTER database open resetlogs;

    stop immediately;

    bootable media;

    nest target = / = dbname

    change the system db_name set = scope = spfile;

    stop immediately;

    Startup mount

    ALTER database open resetlogs;

  • Creating table in the schema has with the user B and granting permissions to the user C

    Hello, I have a problem fun - we have a large table which requires a batch to make millions of updates, and he needs to finish more quickly. It takes several hours as an update, but a select create table did the same thing in about a minute. Yay! Then we just delete the old table and rename the new table to the former, rebuild all the index and grant select/insert/update/delete permissions to another user who needs access... and there is the problem, Oracle said insufficient privs.

    We have A figure, which is the owner of the table, userid B who done all the stuff of application batch and userid C which performs inserts for a process of middleware. None of them are actual users, of course. We want that user B to do the ETG, rename, rebuild and re-grant of the authorisation of the index. But user B apparently cannot grant permissions on objects in the schema A to user C, even if B has created the table and has the role DBA (not ideal, I know)!

    What's really crazy is that there is no sense unique user b can grant permissions to user C, which is to:

    grant select any table USER c;
    grant insert any table USER c;
    grant update any table USER c;
    Grant delete any table USER c;

    It seems really perverse can create tables in diagram A and even grant C privs "whole table" that user B, but may not grant privs specifically on this object in the schema A, even with DBA privs. I must be missing something... right?

    Yes. By default, the stored procedures are stored procedures from DEFINER rights. If A is the owner of a stored procedure, this stored procedure can do whatever A enjoys the privileges to directly. If A grants B privileges RUN this stored procedure, when B calls the stored procedure, the procedure runs with the privileges.

    I agree point stew, however, re-creating objects in Oracle is generally a bad idea and a TRUNCATE with one insert direct-path, possibly combined with the deactivation and the rebuilding of the index would be more appropriate than a DEC. If you're going to stick with this Assignment, however, that really do in a stored procedure owned by A while B has no need to CREATE ANY TABLE.

    Justin

  • The component of Oracle Data Guard is free to use on the production database?

    The component of Oracle Data Guard is free to use on the production database?
    If not, how much is the fee?

    What about Oracle coherence?

    http://www.Oracle.com/corporate/pricing/technology-price-list.PDF

    Coherence Standard Edition 100 22.00 4 600 1,012.00
    Coherence Enterprise Edition 230 50.60 2530,00 11 500
    Coherence Grid Edition 500 110.00 5,500.00 25 000
    Coherence Suite 1 000 220,00 11,000.00 50 000
    BPEL Process Manager 1 200 264.00 60 000 13 200.00

    DataGuard active 120 26.40 5 800 1,276.00
    The regular care of the data is free

  • Creating tables with the same Structure and with the remote control FOR the parts database

    Hello

    I have a remote DB connection and a local DB connection in my system
    I want to create the same Table and data from my DB remote to Local Connection DB connection.

    Please tell me how to do this?

    CREATE TABLE LOCAL_TABLE AS SELECT * FROM REMOTE_TABLE@TNS_ALIAS;

  • Need help with a query complex for the production database

    Hello again,

    I need your help once again, for a query how to show me how long each stage of production is by order.
    See examples of data and what I expect.
    Thank you all for your help.

    We use Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    Here the example data tables:
    CREATE      TABLE      TABLE_2
       
    (     "ORDER_NR"      VARCHAR2 (12)
    ,      "PRIORITY"      VARCHAR2 (2)
    ,      "WO_STEP"      VARCHAR2 (1)
    ,      "STEP_DATE"      DATE
    );
    
    CREATE      TABLE      TABLE_1
    (     "ORDER_NR"           VARCHAR2     (12) PRIMARY KEY
    ,      "PRIORITY"           VARCHAR2      (2)
    ,      "CREATE_DATE"      DATE
    ,     "ACT_STEP"          VARCHAR2     (2)
    ,     "STEP_DATE"          DATE
    ,     "EMPLOYEE"          VARCHAR2     (5)
    ,     "DESCRIPTION"     VARCHAR2     (20)
    );
    
    INSERT      INTO      TABLE_1      (ORDER_NR,               PRIORITY,      CREATE_DATE,                                                        ACT_STEP,     STEP_DATE,                                                            EMPLOYEE,     DESCRIPTION) 
                        VALUES           ('1KKA1T205634',     '12',          TO_DATE('10-FEB-13 10:00:00','DD-MON-RR HH24:MI:SS'),     'U',          TO_DATE('28-FEB-13 12:00:00','DD-MON-RR HH24:MI:SS'),     'W0010',     'CLEAN HOUSE');
    INSERT      INTO      TABLE_1      (ORDER_NR,               PRIORITY,     CREATE_DATE,                                                        ACT_STEP,     STEP_DATE,                                                            EMPLOYEE,     DESCRIPTION)
                        VALUES           ('1KKA1Z300612',     '12',          TO_DATE('08-FEB-13 14:00:00','DD-MON-RR HH24:MI:SS'),     'F',          TO_DATE('20-FEB-13 16:00:00','DD-MON-RR HH24:MI:SS'),     'K0052',     'REPAIR CAR');
    
    INSERT     INTO      TABLE_2      (ORDER_NR,               PRIORITY,     WO_STEP,     STEP_DATE)
                        VALUES           ('1KKA1T205634',     '12',          'A',          TO_DATE('12-FEB-13 13:00:00','DD-MON-RR HH24:MI:SS'));
    INSERT     INTO      TABLE_2      (ORDER_NR,               PRIORITY,     WO_STEP,     STEP_DATE)
                        VALUES           ('1KKA1T205634',     '12',          '5',          TO_DATE('13-FEB-13 09:00:00','DD-MON-RR HH24:MI:SS'));
    INSERT     INTO      TABLE_2      (ORDER_NR,               PRIORITY,     WO_STEP,     STEP_DATE)
                        VALUES           ('1KKA1T205634',     '12',          'K',          TO_DATE('13-FEB-13 10:00:00','DD-MON-RR HH24:MI:SS'));
    INSERT     INTO      TABLE_2      (ORDER_NR,               PRIORITY,     WO_STEP,     STEP_DATE)
                        VALUES           ('1KKA1T205634',     '12',          '5',          TO_DATE('13-FEB-13 11:00:00','DD-MON-RR HH24:MI:SS'));
    INSERT     INTO      TABLE_2      (ORDER_NR,               PRIORITY,     WO_STEP,     STEP_DATE)
                        VALUES           ('1KKA1T205634',     '12',          'K',          TO_DATE('13-FEB-13 12:00:00','DD-MON-RR HH24:MI:SS'));
    INSERT     INTO      TABLE_2      (ORDER_NR,               PRIORITY,     WO_STEP,     STEP_DATE)
                        VALUES           ('1KKA1T205634',     '12',          '5',          TO_DATE('13-FEB-13 16:00:00','DD-MON-RR HH24:MI:SS'));
    INSERT     INTO      TABLE_2      (ORDER_NR,               PRIORITY,     WO_STEP,     STEP_DATE)
                        VALUES           ('1KKA1T205634',     '12',          'C',          TO_DATE('14-FEB-13 08:00:00','DD-MON-RR HH24:MI:SS'));
    INSERT     INTO      TABLE_2      (ORDER_NR,               PRIORITY,     WO_STEP,     STEP_DATE)
                        VALUES           ('1KKA1T205634',     '12',          'B',          TO_DATE('14-FEB-13 10:00:00','DD-MON-RR HH24:MI:SS'));
    INSERT     INTO      TABLE_2      (ORDER_NR,               PRIORITY,     WO_STEP,     STEP_DATE)
                        VALUES           ('1KKA1T205634',     '12',          'E',          TO_DATE('18-FEB-13 13:00:00','DD-MON-RR HH24:MI:SS'));
    INSERT     INTO      TABLE_2      (ORDER_NR,               PRIORITY,     WO_STEP,     STEP_DATE)
                        VALUES           ('1KKA1T205634',     '12',          'F',          TO_DATE('20-FEB-13 16:00:00','DD-MON-RR HH24:MI:SS'));
    INSERT     INTO      TABLE_2      (ORDER_NR,               PRIORITY,     WO_STEP,     STEP_DATE)
                        VALUES           ('1KKA1T205634',     '12',          'S',          TO_DATE('21-FEB-13 08:00:00','DD-MON-RR HH24:MI:SS'));
    INSERT     INTO      TABLE_2      (ORDER_NR,               PRIORITY,     WO_STEP,     STEP_DATE)
                        VALUES           ('1KKA1T205634',     '12',          'R',          TO_DATE('21-FEB-13 09:00:00','DD-MON-RR HH24:MI:SS'));
    INSERT     INTO      TABLE_2      (ORDER_NR,               PRIORITY,     WO_STEP,     STEP_DATE)
                        VALUES           ('1KKA1T205634',     '12',          'U',          TO_DATE('28-FEB-13 12:00:00','DD-MON-RR HH24:MI:SS'));
    INSERT     INTO      TABLE_2      (ORDER_NR,               PRIORITY,     WO_STEP,     STEP_DATE)
                        VALUES           ('1KKA1Z300612',     '12',          'A',          TO_DATE('12-FEB-13 13:52:42','DD-MON-RR HH24:MI:SS'));
    INSERT     INTO      TABLE_2      (ORDER_NR,               PRIORITY,     WO_STEP,     STEP_DATE)
                        VALUES           ('1KKA1Z300612',     '12',          '5',          TO_DATE('13-FEB-13 09:00:00','DD-MON-RR HH24:MI:SS'));
    INSERT     INTO      TABLE_2      (ORDER_NR,               PRIORITY,     WO_STEP,     STEP_DATE)
                        VALUES           ('1KKA1Z300612',     '12',          'K',          TO_DATE('13-FEB-13 10:00:00','DD-MON-RR HH24:MI:SS'));
    INSERT     INTO      TABLE_2      (ORDER_NR,               PRIORITY,     WO_STEP,     STEP_DATE)
                        VALUES           ('1KKA1Z300612',     '12',          '5',          TO_DATE('13-FEB-13 11:00:00','DD-MON-RR HH24:MI:SS'));
    INSERT     INTO      TABLE_2      (ORDER_NR,               PRIORITY,     WO_STEP,     STEP_DATE)
                        VALUES           ('1KKA1Z300612',     '12',          'K',          TO_DATE('13-FEB-13 12:00:00','DD-MON-RR HH24:MI:SS'));
    INSERT     INTO      TABLE_2      (ORDER_NR,               PRIORITY,     WO_STEP,     STEP_DATE)
                        VALUES           ('1KKA1Z300612',     '12',          '5',          TO_DATE('13-FEB-13 16:00:00','DD-MON-RR HH24:MI:SS'));
    INSERT     INTO      TABLE_2      (ORDER_NR,               PRIORITY,     WO_STEP,     STEP_DATE)
                        VALUES           ('1KKA1Z300612',     '12',          'C',          TO_DATE('14-FEB-13 08:00:00','DD-MON-RR HH24:MI:SS'));
    INSERT     INTO      TABLE_2      (ORDER_NR,               PRIORITY,     WO_STEP,     STEP_DATE)
                        VALUES           ('1KKA1Z300612',     '12',          'B',          TO_DATE('14-FEB-13 10:00:00','DD-MON-RR HH24:MI:SS'));
    INSERT     INTO      TABLE_2      (ORDER_NR,               PRIORITY,     WO_STEP,     STEP_DATE)
                        VALUES           ('1KKA1Z300612',     '12',          'E',          TO_DATE('18-FEB-13 13:00:00','DD-MON-RR HH24:MI:SS'));
    INSERT     INTO      TABLE_2      (ORDER_NR,               PRIORITY,     WO_STEP,     STEP_DATE)
                        VALUES           ('1KKA1Z300612',     '12',          'F',          TO_DATE('20-FEB-13 16:00:00','DD-MON-RR HH24:MI:SS'));
    COMMIT;
    And here's what I expect of my request:
    SYSDATE     28.Feb.13 14:00                                                                                     
                                                                                              
    ORDER_NR     PRIORITYCREATE_DATE     STATUS     STATUS_DATE     DESCRIPTION     AGE_1     AGE_2     WAITNG     STEP_A     STEP_B     STEP_C     STEP_5     STEP_K     STEP_E     STEP_F     STEP_S     STEP_R     
    1KKA1T205634     12     10.Feb.13 10:00     U     28.Feb.13 12:00     CLEAN HOUSE     18,083     8,833     2,125     0,833     4,125     0,083     0,750     0,208     2,125     0,666     0,042     7,125     
    1KKA1Z300612     12     08.Feb.13 14:00     F     20.Feb.13 16:00     REPAIR CAR     20,000     16,042     2,125     0,833     4,125     0,083     0,750     0,208     2,125     0,666          
    And now the explanation for the result of the query:
    The AGE_1 is the difference in days between the "CREATE_DATE" and if EXSIST L'ETAPE 'U' then STEP_DATE or if the STEP 'U' is not found in TABLE_2 then it should show the difference in days between the "CREATE_DATE' and the 'SYSDATE.
    The AGE_2 is the difference in days between the STEP "A" STEP_DATE and IF EXSIST L'ETAPE 'R' then STEP_DATE or if the STEP 'R' is not in TABLE_2 then it should show the difference in days between the "CREATE_DATE' and the 'SYSDATE.
    The EXPECTATION is the difference in days between CREATE_DATE and STEP 'A' STEP_DATE
    The following columns indicate the days, how long the ORDER_NR remains in these TIMES, if an ORDER_NR comes in the same STEP should be calculated together more than once.
    If the ORDER_NR jump a step, it should show a zero in the specific field.

    I hope that my explanation is good enough, my English skills are far from good.

    Thank you for all your help.

    Hosts Reinhard W.

    Solomon Yakobson says:
    Just add the amounts:

    In fact, you could edit all CASES:

    with t2 as (
                select  t.*,
                        lead(step_date) over(partition by order_nr order by step_date) next_step_date
                  from  table_2 t
               )
    select  t1.*,
            nvl(
                max(
                    case t2.wo_step
                      when 'U' then t2.step_date
                    end
                   ),
               sysdate
              ) - t1.create_date age_1,
            nvl(
                max(
                    case t2.wo_step
                      when 'R' then t2.step_date
                    end
                   ),
               sysdate
              ) - t1.create_date age_2,
            sum(
                case
                  when t2.wo_step in ('B','5') then t2.next_step_date - t2.step_date
                end
               ) step_b_5,
            sum(
                case t2.wo_step
                  when 'C' then t2.next_step_date - t2.step_date
                end
               ) step_c,
            sum(
                case t2.wo_step
                  when 'K' then t2.next_step_date - t2.step_date
                end
               ) step_k,
            sum(
                case t2.wo_step
                  when 'E' then t2.next_step_date - t2.step_date
                end
               ) step_e,
            sum(
                case t2.wo_step
                  when 'F' then t2.next_step_date - t2.step_date
                end
               ) step_f,
            sum(
                case t2.wo_step
                  when 'S' then t2.next_step_date - t2.step_date
                end
               ) step_s,
            sum(
                case t2.wo_step
                  when 'R' then t2.next_step_date - t2.step_date
                end
               ) step_r
      from  table_1 t1,
            t2
      where t2.order_nr = t1.order_nr
      group by t1.order_nr,
               t1.priority,
               t1.create_date,
               t1.act_step,
               t1.step_date,
               t1.employee,
               t1.description
    /
    
    ORDER_NR     PR CREATE_DA AC STEP_DATE EMPLO DESCRIPTION      AGE_1      AGE_2   STEP_B_5     STEP_C  STEP_K     STEP_E     STEP_F        STEP_S     STEP_R
    ------------ -- --------- -- --------- ----- ----------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
    1KKA1T205634 12 10-FEB-13 U  28-FEB-13 W0010 CLEAN HOUSE 18.0833333 10.9583333      4.875 .083333333 .208333333      2.125 .666666667 .041666667      7.125
    1KKA1Z300612 12 08-FEB-13 F  20-FEB-13 K0052 REPAIR CAR   44.252338  44.252338      4.875 .083333333 .208333333      2.125
    
    SQL>
    

    SY.

  • Searchable table on the product Page?

    So I'm in the middle of making a Web site, and I began with Adobe Muse. The site was almost finished, and then told me that the Web site must include a table that lists all of our products. A visitor will be able to search through the table, click all results and bring them to a page with more information about the product. Now the problem is that there are literally hundreds of products.

    So, after hours of research, I thought a list of spreadsheet will be done first of all products (including photos). On this basis, the table will be made. Using HTML, CSS and JQuery.

    Is there an easier way to do this in Dreamweaver? From my understanding, Muse is not really have this feature, so I plan on making it in Dreamweaver and its import in Muse by using "Import HTML.

    Now for the second part: each product must be clickable and keep the visitor produced a page with more information. Normally, it would be easy if it were not for the large number of products. Is there a way for me to make a model and have the code auto fill depending on what happens when the user clicks on?

    Since this is the first time that I am to tackle a problem like this, any help will be appreciated!

    I have access to the creative cloud together if this is useful.

    Close enough example of what I need:

    http://www.conciergerealty.com/sale-...price_value_1=

    A  visitor will be able to search through the table, click on any results and take them to a page with more information on the product. Now the problem is that there are literally hundreds of products.
    
    So after hours of searching, I figured a spreadsheet listing all the products (including pictures) will be made first. From this, the table is going to be made. Using HTML, CSS, & JQuery.
    

    Forget not on the use of Muse for all this.

    First of all, you need a database server like MySql side.  Then you must create the SQL tables to hold your product information.   Then you need such as PHP server-side code to join the tables of database of your server and pull content dynamically in the summary pages & product details.  In addition, you will probably want to create a back-end CMS for editing / adding new products to the database.

    If advanced programming is totally foreign to you, you can create your site in Adobe Business Catalyst with their purchase module. British Colombia is a unified platform that includes web hosting.   It has pretty much everything you need for the products in a database entry and sells items online.  No heavy coding experience is necessary.

    Nancy O.

  • Partitioning of a table in the production

    Hello

    Oracle 10.2.0.4

    I partitioned a table lines about 100 million (62 GB) in Server DEV source. The target database was created again. It was partioned range on a column of date as follows:
    PARTITION BY RANGE (ENTRY_DATE_TIME)
    (
      PARTITION ppre2012 values less than (TO_DATE('01/01/2012','DD/MM/YYYY')) TABLESPACE WST_LRG_D,
      PARTITION p2012 values less than (TO_DATE('01/01/2013','DD/MM/YYYY')) TABLESPACE WST_LRG_D,
      PARTITION p2013 values less than (TO_DATE('01/01/2014','DD/MM/YYYY')) TABLESPACE WST_LRG_D,
      PARTITION p2014 values less than (MAXVALUE) TABLESPACE WST_LRG_D
    )
    It's every year. Nothing before 2012 to p2013 ppre2012, then 2012, and so on. There are 20 million lines in 2012. and about 75 million lines of ppre2012. We had as well to the tables (partitioned) target DEv and (unpartitioned) source for comparison. Queries are normally on the partition for the current year. Just to say that I am a developer and do not have full visibility to the production instance.

    Now that our tests are completed, we would like to promote this production. Of course in production we would not not need source and target tables. In all likelihood, this will be done on a weekend window. This is why I would like to suggest the following.

    (1) use expdp export the source table
    (2) remove the table from the source
    (3) create a new source "partitioned" no index table
    (4) use impdp to retrieve data in a table
    (5) create a global index (it's a unique index to enforce the uniquness) and the rest of the clues like local
    (6) run dbms_stats.gather_table_stats (waterfall of the user, 'SOURCE' = > true). It takes about 2 hours by dev

    My point is that, if the importation of 100 million lines will cause no issues with segments of cancellation. Can we import data say firstly to the current partition (20 million lines) 2012 first. Any practical advice is appreciated.

    Thank you

    Published by: 902986 on November 2, 2012 02:08

    Published by: 902986 on November 2, 2012 03:10

    >
    -Why do I get "ORA-12838: cannot read/modify an object after edit it in parallel."
    >
    Why don't find you the error and read the cause "that applies?
    http://ORA-12838.ora-code.com/
    >
    ORA-12838: cannot read/modify an object after edit it in parallel
    Cause: In the same transaction, an attempt was made to add instructions for reading or changing on a table once it had been amended at the same time or with a direct charge. This is not allowed.
    >
    Do you have a 'direct charge '? Yes - you can not do anything else under this operation. Do a COMMIT or ROLLBACK first.

  • Insertion of a table in the site database built in Muse

    Hi, I have built my site in Adobe Muse. I now need to add a new page, which should contain a data table. The table will have 11 columns and 400 lines of data that must be updated regularly. I tried with a widget called MSC Tablesmith but it does not seem to handle this amount of data. If I get my programmer to create this database for this one page will always be able to edit and modify the rest of the site in Muse? If not, is there a better widget or another way for me to do that?

    The best way to do is to update your hosting with Business Catalyst plan to include Web applications, which are basically databases that you can integrate with Muse. In this way, you can continue publishing Muse, but you connect to the BC Admin to manage the database (Web App). We are happy to help the integration, if you have any questions. Just reach out to us at www.aidbc.com.

    Thank you!
    Karim

  • SGA_MAX_SIZE is poorly calibrated in the production database

    Hi all

    I use oracle 10g r2 on windows server 2003.i have increased my sga_max_size 4 GB production database and I think our server dosent have much more RAM.

    ALTER database set sga_max_size = 4000M scope = spfile;

    SQL > shutdown immediate;

    Here is not stop and be hanged.

    I opened another sqlplus and issue the following

    SQL > the judgment;

    ORACLE instance stops.

    SQL > startup open

    ORA-27100: shared memory realm already exists

    SQL >

    How to fix it.

    Thank you

    Thank you very much. all you.specially when you guys see the word DATABASE PRODUCTION, then you guys really help very quickly.

    I do the following

    change the spfile and correct the parameter inside and do like a pfile and keep in the c drive.

    Delete the spfile to its location

    database startup pfile

    STARTUP OPEN PFILE ='C:\PFILE. ORA';

    CREATE SPFILE FROM PFILE ='C:\PFILE. ORA';

    STOP IMMEIDATE;

    START OPEN;

    and it's done.

    Thank you very much.

  • EMP tables in the relational database

    Hello
    Can you please let me know what is the tables are actually created in the SCHEMA (Shared services) or EAS in the relational database. It's when configuring EMP that tables are automatically created in the database?

    Appreciate your comments and thank you for your time.

    Thank you
    Hari

    Yes the tables are automatically created and filled at the point of configuration.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Create table replaces the existing table in mssql

    In a program that allows us to update our sites, we use the function 'create an array' of MS SQL to create missing tables in databases.

    Thousands of time we used it, if a table already exists with the same name of the table in the create table MS SQL survey command an error.

    In fact, MS SQL documentation indicates that only if you include the optional 'replace' command, will be a replaced existing table.

    But today, we used this program on a new host, that we are trying, and the create table command actually did replace an existing table with a new table, delete all the records from the old table.

    I'm trying to understand what this would allow the settings at the server level.

    This is the code we use:

    < CFQUERY NAME = "recipe" DATASOURCE = "recipe" dbtype = "ODBC" username = "" #ruser # "password =" #rPASS #">"
    Create table recipecats)
    RecipecatID int IDENTITY(1, 1) NOT NULL PRIMARY KEY,
    recipecatdescription NVARCHAR (50) NULL)
    < / cfquery >

    Are you sure that this is not just to create another table with the same name, but one
    different owner?

    I saw the strangeness (it's probably just weird for me because I am ignorant)
    of what is happening), I can READ a table owned by another user without
    calling the name of the table with its owner, and when I go to CREATE a table
    of the same name, it is actually created as my current user and subsequently when
    you ask the name of the full table, I get the results of one, is not new
    the former. If I'm right in the name of the table, I can ask both/either. Kind
    way similar CF hunting around different scopes when you aren't eligible one
    reference to a variable.

    Also, your code should probably be testing to see if the table exists
    before you try to create it anyway. "Just try and catch.
    "If it errors" is not considered as 'test' if there is

    --
    Adam

  • End of table in the OPS database

    Hi all

    I need help about table OAF related issue. I need to display data on the table of the OFA. But every time when I click on NEXT 5 RECORDS from a table and return to the previous page, all column values are substituted with the first column in a table value. Please look at the screenshot. This table created dynamically with dynamic VO

    capturedelete1.JPG

    .

    Now, I click next 5 records

    capturedelete1.JPG

    I'll now have to first five records by clicking back. All column values are overwritten with the first values of the column.

    capturedelete1.JPG

    Code snippet:

    OATableBean = tabbean

    CreateWebBean (OATableBean) (pageContext, TABLE_BEAN, null, "table");

    tabbean.setID ("TableBN");

    tabbean.setNumberOfRowsDisplayed (5);

    tabbean.setWidth("45%"); "

    tabbean.setUserCustomizable (true);

    tabbean.setViewUsageName ("xxVO");

    Is not of the columns at the bottom of the method.

    int numattr = vo.getAttributeCount ();

    for (int columnNo = 0; columnNo < numattr; columnNo ++)

    {

    AttributeDef ad = vo.getAttributeDef (columnNo);

    String attrName = ad.getName ();

    String colName = ad.getColumnName ();

    AttributeDefImpl addr = (AttributeDefImpl) vo.findAttributeDef (colName);

    addr.setUpdateableFlag (AttributeDefImpl.UPDATEABLE);

    System.out.println ("Yves ding"+ addr.getUpdateableFlag () ');

    query was written for the correct data type in TEX INPUT TO DEFINE THE VIEW USE MESSAGE

    Pran string ="";

    Try

    {

    Pran = "SELECT DISTINCT DATA_TYPE FROM DBA_tab_columns WHERE table_name = UPPER (" + TableName + ") AND COLUMN_NAME = UPPER ("+ colName +")"; "

    St = con.createStatement ();

    RS = st.executeQuery ("SELECT DISTINCT DATA_TYPE FROM DBA_tab_columns WHERE table_name = UPPER ("+"'" + TableName + "'" +") AND COLUMN_NAME = UPPER("+"'"+colName+"'"+")");

    System.out.println ("DataType" + Pran);

    While (RS. Next())

    {

    String colprompt = attrdef [columnNo] .getName ();

    OrclDataType = rs.getString (1);

    System.out.println ("DataType" + OrclDataType);

    }

    RS. Close();

    St.Close ();

    }

    {} catch (sqlexception Exception)

    pageContext.putDialogMessage (new OAException ("OraclePreparedStatement OR OracleResultSet Exception" + sqlexception));

    sqlexception.printStackTrace ();

    }

    System.out.println (colname. Matches(".*date.*"));

    If ("!" true".) Equals (colname. Matches(".*date.*")))

    If (!) "" LAST_UPDATE_DATE ". Equals (colname) & &! "" LAST_UPDATE_LOGIN ". Equals (colname) & &! "' CREATED_BY". Equals (colname) & &! "' CREATION_DATE". Equals (colname) & &! "" LAST_UPDATED_BY ". Equals (colname) & &! "" WH_UPDATE_DATE ". Equals (colname) & &! "" LAST_ORDERED_DATE ". Equals (colname) & &! "" PROGRAM_UPDATE_DATE ". Equals (colname))

    If (!.) OrclDataType.equals ("DATE"))

    {

    name of column = (colName.replace ('_', ' ')). toLowerCase();

    String colprompt = attrdef [columnNo] .getName ();

    String colprompt1 = attrdef [1] .getName ();

    System.out.println ("colprompt" + colprompt);

    SampleVO1 is the name of the ViewObject

    OAMessageTextInputBean = oamessage

    CreateWebBean (OAMessageTextInputBean) (pageContext,

    MESSAGE_TEXT_INPUT_BEAN,

    (NULL, 'text');

    oamessage.setPrompt ("Table name");

    oamessage.setMaximumLength (30);

    oamessage.setID (name of column, "col" + "0");

    oamessage.setViewUsageName ("xxVO");

    oamessage.setViewAttributeName (attrName);

    oamessage.setLabel (colName);

    oamessage.setUserCustomizable (true);

    oamessage.setWrapEnabled (true);

    oamessage.setDataType (OrclDataType);

    }

    }

    webBean.set (true);

    webBean.addIndexedChild (tabbean);

    webBean.s

    pageContext.putTransactionValue ("xflag", 'Z');

    xflag = "N";

    }

    Please help me... Thanks in advance

    Is it not the same question as failed form Validation: "the value is not a date and time in the format" ?

    As suggested in the other thread, use a name for the dynamic OAMessageTextInputBean.

    OAMessageTextInputBean = oamessage

    CreateWebBean (OAMessageTextInputBean) (pageContext,

    MESSAGE_TEXT_INPUT_BEAN,

    (NULL, 'text' + columnNo);

    See you soon

    AJ

  • Creating table in the desired tablespace

    Hello

    I created the CUZK_BACKUP tablespace:


    CREATE the TABLESPACE CUZK_BACKUP DATAFILE ' / oradata/RUIAN/cuzk_backup01.dbf' SIZE 3 G AUTOEXTEND ON NEXT 100 M MAXSIZE 15 G;

    Now I'm trying to create table in this space of table like this:

    BEGIN

    -zjisti, if jiz existuji tabulky ve schematu centrumadmin (0 - no, 1 - year)

    SELECT COUNT (*) in the nCount_aud FROM dba_tables owner WHERE to = 'CENTRUMADMIN' and table_name = "$ _BACKUP2";

    SELECT COUNT (*) in the nCount_fga FROM dba_tables owner WHERE = 'CENTRUMADMIN' and table_name = "FGA_LOG$ _BACKUP2";

    IF (nCount_aud < = 0)-pokud tabulka neexistuje, vytvor ji partisnovanou po mesici

    THEN

    v_sql_aud: =' CREATE TABLE CENTRUMADMIN. AUD$ _BACKUP2

    TABLESPACE CUZK_BACKUP

    storage (initial 500 m next 50 m maxextents unlimited)

    PARTITION BY RANGE (NTIMESTAMP #)

    INTERVAL (NUMTOYMINTERVAL (1, "MONTHS"))

    (

    P_2013 PARTITION VALUES LOWER THAN (TO_DATE ("01/01/2014", "DD-MM-YYYY"));

    P_2014_01 PARTITION VALUES LOWER THAN (TO_DATE ("02/01/2014", "DD-MM-YYYY"));

    P_2014_02 PARTITION VALUES LOWER THAN (TO_DATE ("03/01/2014", "DD-MM-YYYY"));

    P_2014_03 PARTITION VALUES LOWER THAN (TO_DATE ("04/01/2014", "DD-MM-YYYY"));

    P_2014_04 PARTITION VALUES LOWER THAN (TO_DATE ("05/01/2014", "DD-MM-YYYY"));

    P_2014_05 PARTITION VALUES LESS THAN (TO_DATE ("06/01/2014", "DD-MM-YYYY")))

    AS select * from SYS. AUD$ where 1 = 2';

    EXECUTE IMMEDIATE v_sql_aud;

    DBMS_OUTPUT. Put_line ('Vytvorena tabulka CENTRUMADMIN.) AUD$ _BACKUP2.') ;

    ON THE OTHER

    DBMS_OUTPUT. Put_line (' CENTRUMADMIN Tabulka.) AUD$ _BACKUP2 jiz existuje.') ;

    END IF;

    Table is created, but not in the CUZK_BACKUP tablespace:

    Select table_name, tablespace_name from dba_tables where owner = "CENTRUMADMIN";

    TABLE_NAME, TABLESPACE_NAME

    ------------------------------ ------------------------------

    CUZK_SLUZBY OKO_USR_SCD

    CUZK_LOG_BEHU OKO_USR_SCD

    CUZK_LOG_FAZE OKO_USR_SCD

    CUZK_LOG_CHYBY OKO_USR_SCD

    AUD$ _BACKUP

    AUD$ _BACKUP2

    FGA_LOG$ _BACKUP

    FGA_LOG$ _BACKUP2

    Why there is no tablespace and how to make it work?

    Thank you

    Honza



    For a partitioned table, the actual segments are at the Partition level.  If a query DBA_TAB_PARTITIONS and DBA_SEGMENTS.

    Hemant K Collette

Maybe you are looking for

  • Ads pop up on my FireFox home page

    What happens here? I have my homepage set. Ads appear at the top of my home page. Why? I checked my add on extensions and abducted in recent extensions of the best Surf. I just check through my plugins, and I have disabled things like: RocketLife Sec

  • My second drive to restore more! does not work

    I had a virus on my desktop (HP Compaq 6005) and want to restore but I lost the disk from that my computer came. I asked hp if they could send me a replacement and they sent me four different restore CD. They are numbered from 1 to 3, and then there'

  • Remote PVR on Slimline S5380t works not properly

    I have had this PC (Slimline S3580t with TV tuner) for a few weeks now and I'm having problems with the PVR remote control. It is difficult to operate reliably. Point the remote control at the Slimline PC and press on and nothing happens, I get close

  • HP compaq mini 110 bios pasword

    Hi there I'm trying to recover my netbook boot, I put a bios password and don't remember it was earlier I tried that three times it comes up with error code of verification of password CNU9403TGS could help you please with a reset code any help appri

  • How to transfer emails from a user account on the same computer on Windows mail in Windows Vista

    my name is misspelled when accounts set up for the user after the clean install of Vista Home Premium. I want to create a new account with my name correctly spelled and remove the old once I have everything transferred to the new account. Create the