Adding column to a table

Hi everybody,
I have to make a column (in Siebel repository) or better to say I have to add a column to the table. The column doesn't exist in a database. There is a PL/SQL package which has the stored procedure I need to call to make column. How may I make the column from the stored procedure?
Thanks in advance.
I apologize if the meaning from the above sentences is confused.
Edited by: Stanisa on 24.02.2010. 14.45

1.) The Siebel guys are over there -> http://forums.oracle.com/forums/category.jspa?categoryID=151
2.) Siebel schema changes are applied through Siebel Tools to the schema. Ref. "Apply" and "Activate" buttons.

Similar Messages

  • Update beans after adding columns to DB tables

    I am trying to use JDeveloper 10G , Studio Edition Version 10.1.3.0.4.3673
    I am having difficulty finding out how to update CMP Entity Beans
    after adding columns to DB tables.
    I have found descriptions of how to do these from four sources.
    None of these methods work.
    They all refer to menu options, buttons or fields that aren't in the JDevb IDE.
    List of options that don't exist :
    "Synchronize with Database"
    "attributes"
    "Add from table"
    "New from Table"
    "Fields Tab"

    What version of EJBs are you using?
    The only option I know of for EJBs will be to generate the bean from the table again, or manually add the field to the EJB.
    The "Synchronize with Database" operation is there for ADF Business Components but not for EJBs.

  • Newly added column in a table not displayed in a related form

    I added a new column (DNAMECONT as varchar2) in a table I created a Form on. I added this new field in my Form as a text field, and on the customized tab of the form wizard, this following code is displayed as expected :
    <TR><TD><#DCONTRACTOR.LABEL#></TD><TD><#DCONTRACTOR.ITEM#></TD></TR>
    But I cannot view it once I run my form.
    did I forget to do something or is there something I did wrong?
    Thank you for your help.
    Bertrand

    Sorry to interupt, as far as I understand, if you add extra column to a table after the form is built and you want to add this new column in your form. When you add new item in your form, the name you give to the item should exactly match the column name of your new column of the table. Now, you said you added a new column called DNAMECONT, but the
    html shown in form wizard is <#DCONTRACTOR.LABEL#>, <#DCONTRACTOR.ITEM#>, two names do seem to match. Is that the problem?
    null

  • SSAS Tabular - Adding Column to a table gives error "Object reference not set to instance of object"

    If I make changes to a table in SSAS Tabular Visual Studio, the newly added column gives error as "Object
    reference not set to instance of object"

    Hi VikasJain13,
    According to your description, you get the "Object reference not set to instance of object" error when adding columns in Tabular. Right?
    Generally, it throws this error when the internal code is accessing the property of an empty object. As you mentioned it happens when you make changes on a table, mostly it means that table is already a empty object. Please re-process your tabular to see
    if this table is still existing. 
    If you have any question, please feel free to ask.
    Simon Hou
    TechNet Community Support

  • General Scenario- Adding columns into a table with more than 100 million rows

    I was asked/given a scenario, what issues do you encounter when you try to add new columns to a table with more than 200 million rows? How do you overcome those?
    Thanks in advance.
    svk

    For such a large table, it is better to add the new column to the end of the table to avoid any performance impact, as RSingh suggested.
    Also avoid to use any default on the newly created statement, or SQL Server will have to fill up 200 million fields with this default value. If you need one, add an empty column and update the column by using small batches (otherwise you lock up the whole
    table). Add the default after all the rows have a value for the new column.

  • Is it necessary to update scope_info and scope_config when adding columns to a table in a provisioned database?

    I followed the example provided in
    https://jtabadero.wordpress.com/2011/04/13/modifying-sync-framework-scope-definition-part-3-workarounds-addingremoving-columns/ to add columns to a table in a provisioned database.  The sample code replaces the stored procedures triggered when the
    table is updated with new stored procedures which include the additional columns
    However, the sample does not update scope_config. When I am finished, the new columns do not appear in the scope config.  Looking at the SQL code it is immediately obvious why.  Here is an excerpt from the beginning of the query
    DROP PROCEDURE [PATIENT_insertmetadata];
    DROP PROCEDURE [PATIENT_updatemetadata];
    DROP PROCEDURE [PATIENT_deletemetadata];
    -- BEGIN Enable Snapshot Isolation on Database 'PatScan' if needed
    IF EXISTS (SELECT NAME FROM sys.databases where NAME = N'PatScan' AND [snapshot_isolation_state] = 0)
    BEGIN
     ALTER DATABASE [PatScan] SET ALLOW_SNAPSHOT_ISOLATION ON
    END
    GO
    -- END Enable Snapshot Isolation on Database 'PatScan' if needed
    -- BEGIN Create Scope Info Table named [scope_info]
    IF NOT EXISTS (SELECT t.name FROM sys.tables t JOIN sys.schemas s ON s.schema_id = t.schema_id WHERE t.name = N'scope_info' AND s.name = N'dbo')
    BEGIN
     CREATE TABLE [scope_info] ([scope_local_id] int IDENTITY(1,1) NOT NULL, [scope_id] uniqueidentifier DEFAULT NEWID() NOT NULL, [sync_scope_name] nvarchar(100) NOT NULL, [scope_sync_knowledge] varbinary(max) NULL, [scope_tombstone_cleanup_knowledge] varbinary(max)
    NULL, [scope_timestamp] timestamp NULL, [scope_config_id] uniqueidentifier NULL, [scope_restore_count] int DEFAULT 0 NOT NULL, [scope_user_comment] nvarchar(max) NULL)
     ALTER TABLE [scope_info] ADD CONSTRAINT [PK_scope_info] PRIMARY KEY ([sync_scope_name])
    END
    GO
    -- END Create Scope Info Table named [scope_info]
    -- BEGIN Create Scope Config Table named [scope_config]
    IF NOT EXISTS (SELECT t.name FROM sys.tables t JOIN sys.schemas s ON s.schema_id = t.schema_id WHERE t.name = N'scope_config' AND s.name = N'dbo')
    BEGIN
     CREATE TABLE [scope_config] ([config_id] uniqueidentifier NOT NULL, [config_data] xml NOT NULL, [scope_status] char NULL)
     ALTER TABLE [scope_config] ADD CONSTRAINT [PK_scope_config] PRIMARY KEY ([config_id])
    END
    GO
    -- END Create Scope Config Table named [scope_config]
    In an already provisioned database, the scope_info and scope_config tables already exist.  Hence the portions of the script to create the scope_info and scope_config tables are skipped.  I tried modifying the query to drop these tables.  When
    I do so, ne tables are created but they only define the modified table.
    Is it necessary to update scope_info and scope_config?  Are there are side effects (such as deprovisioning) if I drop and then recreate these tables? Can I just update the existing scope_config, replacing the portion of the XML which defines the table
    being modified? Do I have to make changes in scope_info?
    Thanks
    Howard Weiss
    Howard P. Weiss

    I followed the example provided in
    https://jtabadero.wordpress.com/2011/04/13/modifying-sync-framework-scope-definition-part-3-workarounds-addingremoving-columns/ to add columns to a table in a provisioned database.  The sample code replaces the stored procedures triggered when the
    table is updated with new stored procedures which include the additional columns
    However, the sample does not update scope_config. When I am finished, the new columns do not appear in the scope config.  Looking at the SQL code it is immediately obvious why.  Here is an excerpt from the beginning of the query
    DROP PROCEDURE [PATIENT_insertmetadata];
    DROP PROCEDURE [PATIENT_updatemetadata];
    DROP PROCEDURE [PATIENT_deletemetadata];
    -- BEGIN Enable Snapshot Isolation on Database 'PatScan' if needed
    IF EXISTS (SELECT NAME FROM sys.databases where NAME = N'PatScan' AND [snapshot_isolation_state] = 0)
    BEGIN
     ALTER DATABASE [PatScan] SET ALLOW_SNAPSHOT_ISOLATION ON
    END
    GO
    -- END Enable Snapshot Isolation on Database 'PatScan' if needed
    -- BEGIN Create Scope Info Table named [scope_info]
    IF NOT EXISTS (SELECT t.name FROM sys.tables t JOIN sys.schemas s ON s.schema_id = t.schema_id WHERE t.name = N'scope_info' AND s.name = N'dbo')
    BEGIN
     CREATE TABLE [scope_info] ([scope_local_id] int IDENTITY(1,1) NOT NULL, [scope_id] uniqueidentifier DEFAULT NEWID() NOT NULL, [sync_scope_name] nvarchar(100) NOT NULL, [scope_sync_knowledge] varbinary(max) NULL, [scope_tombstone_cleanup_knowledge] varbinary(max)
    NULL, [scope_timestamp] timestamp NULL, [scope_config_id] uniqueidentifier NULL, [scope_restore_count] int DEFAULT 0 NOT NULL, [scope_user_comment] nvarchar(max) NULL)
     ALTER TABLE [scope_info] ADD CONSTRAINT [PK_scope_info] PRIMARY KEY ([sync_scope_name])
    END
    GO
    -- END Create Scope Info Table named [scope_info]
    -- BEGIN Create Scope Config Table named [scope_config]
    IF NOT EXISTS (SELECT t.name FROM sys.tables t JOIN sys.schemas s ON s.schema_id = t.schema_id WHERE t.name = N'scope_config' AND s.name = N'dbo')
    BEGIN
     CREATE TABLE [scope_config] ([config_id] uniqueidentifier NOT NULL, [config_data] xml NOT NULL, [scope_status] char NULL)
     ALTER TABLE [scope_config] ADD CONSTRAINT [PK_scope_config] PRIMARY KEY ([config_id])
    END
    GO
    -- END Create Scope Config Table named [scope_config]
    In an already provisioned database, the scope_info and scope_config tables already exist.  Hence the portions of the script to create the scope_info and scope_config tables are skipped.  I tried modifying the query to drop these tables.  When
    I do so, ne tables are created but they only define the modified table.
    Is it necessary to update scope_info and scope_config?  Are there are side effects (such as deprovisioning) if I drop and then recreate these tables? Can I just update the existing scope_config, replacing the portion of the XML which defines the table
    being modified? Do I have to make changes in scope_info?
    Thanks
    Howard Weiss
    Howard P. Weiss

  • Adding column name into tables.

    Hi guys,
    i have a panel which consist of a scroll table which i am not sure how to i add column names tru this type of coding. and some more i have to retrieve info from the database and display into this table. can someone pls guide me how to i add in the column names and how do i retrieve info out from db and displying it onto the table? a million thanks! :)
          * This method initializes jScrollPane_viewLogTable     
          * @return javax.swing.JScrollPane     
         private JScrollPane getJScrollPane_viewLogTable() {
              if (jScrollPane_viewLogTable == null) {
                   jScrollPane_viewLogTable = new JScrollPane();
                   jScrollPane_viewLogTable.setBounds(new java.awt.Rectangle(27,30,460, 200));
                   jScrollPane_viewLogTable.setViewportView(getJTable_viewLogTable());
              return jScrollPane_viewLogTable;
          * This method initializes jTable_viewLogTable     
          * @return javax.swing.JTable     
         private JTable getJTable_viewLogTable() {
              if (jTable_viewLogTable == null) {
                   jTable_viewLogTable = new JTable();
              return jTable_viewLogTable;
         }Titus

    It's not my code, it's just Java.
    C'mon, read the javadocs.
    Or look at this:
    http://www.exampledepot.com/egs/java.sql/GetRsColCount.html
    %

  • Problems adding columns in a table

    Hi,
    I defined a table. Now I need to add new columns. In OWB I set them in their correct order but when I deploy the table with upgrade, in the database, columns appear at the end of the table.
    Does anyone know this problem, how can i resolve this?
    Thanks
    Beatriz

    You mean ordered in the table as shown in a mapping or table editor window? This ordering is only visual and will not impact meta-data definition.
    If it is really important the best solution is to:
    - replace the table with new/altered columns by script in SQLplus/Toad
    - do import of table in OWB (mention the 'Advanced Reconciliation Options' uncheck the 'Preserve...' boxes)
    - reconcile inbound in a mapping where the table is used. Lines to columns will stay if the column-name didn't change.
    Anybody know this issue is solved in OWB 10g R2?

  • Add columns to a table with lob column

    Hi,
    Just a quick question: is there a performance penalty after adding columns to a table with a lob fied? the lob field is now the last column in the table and via via I was told that adding columns will impact badly the IO performance on the table if the lob field isn't anymore the last column. The table is on a Oracle 10.2.0.3 version.
    thanks. regards
    Ivan

    Havent heard of performance degradation specifically due to a LOB column not being the last column in a table (although there are several issues with just having a LOB column in a table).
    You may want to build a test database to test it out. It should be easy to run tests comparing one with the additional column and one the original to prove or refute it. The results would be interesting to learn - please post them up if you intend to test it out.

  • Setting a Primary Key for a newly added Column

    Is it possible for setting a primary key for a newly added column in a table having records?

    Hi,
    km**** wrote:
    oh if the table has records then it is not possible ah...No, the table can have rows at the time you add the Primary Key constraint. Solomon was just saying that the column(s) that you are making into the Primary Key must already have unique values. A Primary Key can not be NULL, so you must do the steps in this order:
    (1) ALTER TABLE to add the column(s) (if this hasn't been done already)
    (2) UPDATE the table, to put unique values in all rows for the Primary Key column(s)
    (3) Add the PRIMARY KEY constraint
    You need to do step (2) before you do step (3)

  • After adding one column in a table can't get the header line

    hi all,
    i have make a SMART FORM which was working perfectly.Now the requirement of user is to add one column in my table at smart form which i did and after modification i execute it it give me data as well but issue which i'm facing is that the TABLE at smart forms in which i have add one field is not displaying the HEADER LINE which i have define with SELECT PATTREN option.
    Thanks & Regards,
    sappk25

    Hi,
    Have you created the Header Text? If yes, then might be the case that your smartforms
    table which was already created is with Multiple Line. Check weather you have added
    customer field in Header Line or Not?
    Regards,
    SUjeet

  • Adding new column to Webdynpro Table

    Hi
    How can I add a new column, already one of my friend has added a table to the view in webdynpro, there are 4 columns presently maped to BAPI
    I need to add 2 new columns to the webdypor table and map it to BAPI.
    please suggest me. basically I am enhancing the screen.
    regards
    kiran

    Hi,
    May be there is a constraint defied on the newly added column that it can not be null ?
    Thanks,
    Sutirtha

  • Adding a new Big INT column to existing table in production, which holds 700 million records will impact anything in production?

    Hi Guys,
    I have to add a new Big INT column to existing table in production, which holds 700 million records and would like to know the impact?
    I have been tolled by one of my colleagues that last time they tried adding a column to same table during working hour and it locked out the table and impacted the users.
    Please suggest/share If any one had similar experience.
    Thanks Shiven:) If Answer is Helpful, Please Vote

    If you add a new column to a table using an ALTER TABLE ADD command and specify that the new column allows NULLs and you do not define a default value, then it will take a table lock.  However, once it gets the table lock, it will essentially run instantly
    and then free the table lock.  That will add this new column as the last column in the table, for example
    ALTER MyTable ADD MyNewColumn bigint NULL;
    But if you your change adds a new column with a default value, or you do something like using table designer to add the new column in the middle of the current list of columns, then SQL will have to rewrite the table.  So it will get a table lock, rewrite
    the whole table and then free the table lock.  That will take a considerable amount of time and the table lock will be held for that whole period of time.
    But, no matter how you make the change, if at all possible, I would not alter a table schema on a production database during working hours.  Do it when nothing else is going on.
    Tom

  • Error when adding columns to table and update sync group schema

    Hi,
    I have an Azure SQL Database that is synced to five lokal SQL Server Express 2012 clients. Today I had to add some columns to the tables, I did this using SMMS and ALTER TABLE on the hub-database.
    Then I disabled auto-sync in the Azure Portal and updated the sync schema.
    The first error I got when clicking on Save-Button was that my goup is not ready for syncing. I assumed that was caused by two sync agents who were offline. So I deleted them from the group and the error was gone. (is this an generall issue that all agents
    must be online to update the schema?)
    But then I got the next error when clicking on Save-Button who tells me SQL Error 207, invalid column name on the new columns I've added. 
    Here's the error in the eventlog:
    id:DbProvider_SqlSyncScopeProvisioning_Error, rId:, sId:cc009538-29a6-4980-8db6-98fe520626b6, agentId:cb734c59-3484-41ed-8002-dec8cf7e21b4,
    agentInstanceId:1aa5a36e-0dfb-4ff1-841a-c298d2e77fe7, syncGroupId:9d439cdd-de14-4e4d-a799-8a7fa518f533, syncGroupMemberId:dd2d6cdf-fdb3-4ff8-8ab5-8e639c35af47, hubDbId:d5c5615a-6f55-484a-8c76-cf335989fa41, tracingId:b5f0eb23-1ade-437b-af33-a1960ebd1c23, databaseId:a9c5ba71-a7b0-4ffe-ab8d-10b6006fc282,
    sqlAzureActivityId:00000000-0000-0000-0000-000000000000, e:'Type=System.Data.SqlClient.SqlException,Message=Ungültiger Spaltenname &apos;Kunde_Name&apos;.
    Ungültiger Spaltenname &apos;Rechnung_gestellt&apos;.
    Ungültiger Spaltenname &apos;Rechnung_bezahlt&apos;.
    Ungültiger Spaltenname &apos;Kunde_Name&apos;.
    Ungültiger Spaltenname &apos;Rechnung_gestellt&apos;.
    Ungültiger Spaltenname &apos;Rechnung_bezahlt&apos;.,Source=.Net SqlClient Data Provider,StackTrace=
      bei System.Data.SqlClient.SqlConnection.OnError(SqlException exception&#44; Boolean breakConnection&#44; Action`1 wrapCloseInAction)
       bei System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception&#44; Boolean
    breakConnection&#44; Action`1 wrapCloseInAction)
       bei System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj&#44;
    Boolean callerHasConnectionLock&#44; Boolean asyncClose)
       bei System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior&#44; SqlCommand cmdHandler&#44;
    SqlDataReader dataStream&#44; BulkCopySimpleResultSet bulkCopyHandler&#44; TdsParserStateObject stateObj&#44; Boolean&amp; dataReady)
       bei System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName&#44; Boolean
    async&#44; Int32 timeout&#44; Boolean asyncWrite)
       bei System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion&#44;
    String methodName&#44; Boolean sendToPipe&#44; Int32 timeout&#44; Boolean asyncWrite)
       bei System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
       bei Microsoft.Synchronization.Data.SqlServer.SqlSyncTrackingTableHelper.UpdateTrackingTableWhereColumnsNotNullInBaseTable(SqlConnection
    connection&#44; SqlTransaction transaction&#44; DbSyncColumnDescription[] addedColumns&#44; DbSyncColumnDescription[] modifiedColumns&#44; Int32 tableObjectId&#44; SqlSyncMarkerTableHelper markerHelper)
       bei Microsoft.Synchronization.Data.SqlServer.SqlSyncTableProvisioning.ReApply(SqlTransaction
    trans&#44; SqlSyncProviderAdapterConfiguration oldConfiguration)
       bei Microsoft.Synchronization.Data.SqlServer.SqlSyncScopeProvisioning.ReApplyScope(SqlConnection
    connection)
       bei Microsoft.Synchronization.Data.SqlServer.SqlSyncScopeProvisioning.ReApplyInternal(SqlConnection
    connection)
       bei Microsoft.Synchronization.Data.SqlServer.SqlSyncScopeProvisioning.ReApply(),', eType:'Type=System.Data.SqlClient.SqlException',
    eMessage:'Message=Ungültiger Spaltenname &apos;Kunde_Name&apos;.
    Ungültiger Spaltenname &apos;Rechnung_gestellt&apos;.
    Ungültiger Spaltenname &apos;Rechnung_bezahlt&apos;.
    Ungültiger Spaltenname &apos;Kunde_Name&apos;.
    Ungültiger Spaltenname &apos;Rechnung_gestellt&apos;.
    Ungültiger Spaltenname &apos;Rechnung_bezahlt&apos;.' Error Code: -2146232060 - SqlError Number:207,
    Message: Ungültiger Spaltenname &apos;Kunde_Name&apos;.. SqlError Number:207, Message: Ungültiger Spaltenname &apos;Rechnung_gestellt&apos;.. SqlError Number:207, Message: Ungültiger Spaltenname &apos;Rechnung_bezahlt&apos;.. SqlError
    Number:207, Message: Ungültiger Spaltenname &apos;Kunde_Name&apos;.. SqlError Number:207, Message: Ungültiger Spaltenname &apos;Rechnung_gestellt&apos;.. SqlError Number:207, Message: Ungültiger Spaltenname &apos;Rechnung_bezahlt&apos;..
    , eTypeInner:, eMessageInner:
    Can anyone help here?
    Kind
    regards,
    selmiac

    Hello,
    When you alter the table on hub database, did you specify the new column allow NULLs or have a DEFAULT? The column must allow NULLs or have a DEFAULT for the user to create it in the other tables on the sync group.
    Reference:Add or remove a column in a sync group
    If the issue persists, you may try to delete the sync group and recreate the group.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Adding primary key column in populated table

    Hi all,
    I am trying to add a column into a table which is already populated. The column which needs to be added has to be Primary Key.
    As expected, oracle popped up the error (ORA-01758) that, a NOT NULL column cannot be added unless the table is empty.
    One possibe way is to create a new temp table and then transfer all the current data...renaming the temp table later.
    Is there any other way to accomplish this task?
    Thanks

    Hello,
    As error suggested you cannot add a not null constraint on new column to table which is already populated. What else you can do beside you got fairly simple and quick idea of creating a temp table and moving data?
    You can add new column but null, update the column with the values and alter the table marking column as not null. But your idea of empty temp table is simple and quick one.
    CREATE TABLE my_objects
    AS
       SELECT 'my_new_column' my_new, owner
       FROM all_objects
       WHERE ROWNUM < 1;
    _Not Null_
    ALTER TABLE MY_OBJECTS
    MODIFY(MY_NEW  NOT NULL);
    _Primary key_
    ALTER TABLE MY_OBJECTS
    ADD CONSTRAINT MY_OBJECTS_PK
    PRIMARY KEY
    (MY_NEW);Regards

Maybe you are looking for

  • LocalATP  from R/3 in CRM 4.0

    Hi Experts, I have set up the ATP in SPRO. ATP check is happening for TAN and ZTANs but not for TANN in Free of charge ordes in CRM 4.0. I am getting the following errors- Availability check/information: ATP error log (display via long text) Message

  • Unable to import Mac address book into Thunderbird

    I have Address Book on my Mac and am trying to import it into Thunderbird. I have gone to Tools>Import>address books>text file. But when I try to choose Address Book in applications, it is not highlighted , so it is not an option to choose. I have al

  • Search field opens in new window

    I'm on Safari 5.1. when I enter anything in the search field, it opens on a new window  not on current tab. what seems to be the problem. In preferences, its on automatic already. Thanks

  • What does per Wlan Band select and load balancing do ?

    Good morning.....We recently upgraded our controllers from 4.2.185 to 6.0.188 and have noticed many clients having connectivity issues. We have Aggressive load balancing turned off globally but have noticed that band select and load balancing are ena

  • 8900 Keeps Rebooting half way through a Reboot.

    Hi, I use my BlackBerry for Business, it's my primary phone for both work and personal. Recently I got a brand new 8900 and worked great. One night while away on business it froze for the first time, I pulled out the battery and rebooted it and it ke