Modify the table basic forms of Portal

Hello

I have a form based on a table in Oracle Portal. Is it possible to change the base table to another table with the same fields?

Thank you
Arne

Hey Arne,

Official answer:

No, Oracle Portal creates a package for your component of forms in the application's schema. The name of the table is stored in the package. Assistants do allow you to edit the table.

Answer official, not supported by Oracle:

Yes, you can change the code to package body. Especially when the columns do not change, it is easy enough to change the database table. I did the following test on the portal 11.1.1.x with the form of the example on the Emp table in the provider database PORTAL_DEMO:

1. create a copy of the EMP table:

SQL > conn portal_demo
SQL > create table my_emp in select * from emp;

2. in the portal user interface, go to the browser and navigate to the following location:

Path: providers > locally built providers > Application example

3. create a copy of the form on the EMP Table example

* Click on manage link
* Go to manage subtab
* Click Copy to create a copy of the form

4. in the portal navigation, click on the link manage to the new form that was created in step 3

5. click on the link called Package body to get the body of your form package

6 open the code in an appropriate editor or a tool such as SQL Developer and do a search and replace for string EMP. replace by MY_EMP.

7 run the code updated the package in your portal repository database when it is connected as a user PORTAL_DEMO

Thank you
EJ

Tags: Fusion Middleware

Similar Questions

  • Iterator for the table and form is a problem during the cleaning of the records

    Hello

    I use JDev 12.1.2.

    I have an object of the detail view. I represent a part of its fields in a table and the rest in a form. I use the same iterator. Basically, I dragged and dropped the object even from the view of the data control and created a table and form layout with the fields I wanted in each provision. I put in place a clear feature for the rows in the table with a clear"" key. -on click I delete the line of the iterator in the managed bean. When I do this the selected record is deleted and the next record is displayed. But fields entered in the form layout also gets deleted. (the form should also be showing the record currently selected - it shows but entrable fields in the form are deleted because of claire that I did on the previous line.) If anyone can help get this resolved?

    Not use the same iterator for the tables and forms here? The links are in the row (row.bindings...) for the table, but for the form it is (links...). The Delete on the current row operation is causing the iterator delete all fields of links instead of from the line? Please shed some light.

    Thank you

    UMA

    How do you rank on the iterator compensation?

    use resetActionListener in your clear button and let us know what is happening?

    Ashish

  • generate the search pages the tables and forms using templates speed

    Hello

    I have a table-form page and would like to have a quick search on two windows. Currently, I'm copying the form of generated code page jspx table on page jspx form to achieve. Speed models can be modified to allow this? I looked at the formGroup.vm and the searchArea.vm, but the below lines

    If ($JHS.current.pageComponent.hasSearchArea)
    if(${JHS.) Current.Group.generateSearchAreaInRegion})

    seem to be stumble me...

    We develop in JDev 10.1.3.4 and JHeadstart 10.1.3.3.88

    Thank you!

    Lana

    Lana,

    You can make a custom searchArea.vm and a custom formGroup.vm model where you uncheck the box for #if ($JHS.current.pageComponent.hasSearchArea)

    You will then get a search box in the table and the page of the form.

    Steven Davelaar,
    Jheadstart team.

  • Modify the ADF search form fields labels

    Data control , I drag and drop a few criteria appointed as Panel request ADF with Table. How to change the labels of fields in the search form. The search form shows the same label in the Object View which is not easy to use. for example, the table in Employee. Instead of (Fname) I need to have on the label (name). Notice, I could change the names of fields in the Table , but not in the search form . I use Jdeveloper 11.1.2.3

    To change the component af:query labels, you must change the Text property of the label for the object in view (tab tips UI) attributes

    Dario

  • What trigger to use to insert data into the table db forms

    Hello

    My form is current having a block of database with the table reference. When you enter data into the form field and click Save. Automatically record is inserted in the database table.
    I want to do this under manual insert. I changed the block of data to a data non-base. Where should I write the insert statement to insert data into the table.
    Is - shutter release key of the form-level validation?

    Please notify.

    Thank you
    Didi.

    You can guide me how to remove the message FRM-40401 no changes to save and instead, I wanted to put 1 transaction record successful... some like it like that.

    Hi didi.
    And this is my last post I'll sleep. ;)
    Take form level trigger named preform
    and write on it

    :SYSTEM.MESSAGE_LEVEL := 5;
    

    I hope this works...

    Hamid

    Mark correct/good to help others to get the right answers. *

  • Deactivate the record in the table of forms

    Hai

    I have created a registry of attendace in forms 6i. I took a text file and processed, and the result is genereated in the table. Now my need to know when I extract textfile new process of my old data in the table should be removed if there is no builtin

    This clear_record is correct

    Respect of
    Srikkanth.M

    Clear_Block() clears the entire block.

    François

  • Updating column in the table using forms...

    Well Guyz I got my submission today... everything went well... .but yet they want to add IE more features want to donate this application at different times working in the company on different projects... .initailly told me that u have to create this application for just our project, now they use my work to give to other PMsss:(et prendre tout le crédit avec aucun faisait pour moi u n personnes m'a beaucoup aidé dans la construction de cette application...) Well, they want to create an application where they can change some columns... that is to say over write the existing value in a column with a new value.
    Now, suppose I have col1, col2 in the table paymast, how should I proceed to create trigger for when I press the button on the form is updated to the number of given employee (I want to say if enter the respective information for the particular EMP as soon as I press the button the old values shud b replaced by new values...)

    A method that I have noe is to use the wizard to create the form n, and then enter the value of the respective areas of the column to be updated n, then press F6 DB... .i do not want to use this function...

    I want to update the application by pressing the button

    soon :)

    Published by: Chase Suhail on Nov 15, 2009 12:26 AM

    Published by: Chase Suhail on Nov 15, 2009 12:29 AM

    Published by: Chase Suhail on Nov 15, 2009 12:30 AM

    Published by: Chase Suhail on 15 Nov 2009 02:05

    I don't know a lot of your application, but if you build it near standard forms (e.g. base your blocks on the tables), then its standard Frédérique you type the new value in the field and press save. the button... do you want to the "economy"? then put a DO_KEY ('COMMIT_FORM'); in it.

  • by the way the value of the table to form

    Hello

    I have a requirement in which I need to store the selected rows in a table (from the database) in my text on a form.

    the code in my form as follows.

    < af:form id = "f1" >
    < af:inputText label = "id" id = "it1" value = "#{full.id}" / >

    < af:commandButton text = 'Search' id = "cb1" >
    < af:showPopupBehavior popupId = "p1" / >
    < / af:commandButton >

    < af:inputText label = "name" id = "it2" value = "#{full.name}" / >

    < af:popup id = "p1" >
    < af:panelFormLayout id = "pfl1" inlineStyle = "width: 337px;" >
    < af:table value = "#{bindings." PlantMasterView1.collectionModel}.
    var = "row" rows = "#{bindings." PlantMasterView1.rangeSize}.
    emptyText = "#{bindings." PlantMasterView1.viewable? "{'No data to display.': 'Access Denied.'}".
    fetchSize = "#{bindings." PlantMasterView1.rangeSize}.
    rowBandingInterval = '0 '.
    selectedRowKeys = ' #{bindings. " PlantMasterView1.collectionModel.selectedRow}.
    selectionListener = "#{bindings." PlantMasterView1.collectionModel.makeCurrent}.
    rowSelection = "single" id = "t1" >
    < af:column sortProperty = "PlantId" sortable = "false".
    headerText = "#{bindings." PlantMasterView1.hints.PlantId.label}.
    ID = "c2" >
    < af:outputText value = "#{rank." PlantId}"id ="ot2">
    < af:convertNumber groupingUsed = "false".
    model = ' #{bindings. " PlantMasterView1.hints.PlantId.format}"/ >
    < / af:outputText >
    < / af:column >
    < af:column sortProperty = "PlantName" sortable = "false".
    headerText = "#{bindings." PlantMasterView1.hints.PlantName.label}.
    ID = "c1" >
    < af:outputText value = "#{rank." PlantName}"id ="ot1"/ >
    < / af:column >
    < / af:table >

    < af:commandButton text = "ok" id = "cb2" action = "#{full.act}" / >

    < / af:panelFormLayout >
    < / af:popup >
    < / af:form >


    Here is the code from my managed bean

    public class {full

    private string ID;
    private String name;

    public String act() {}

    String plantid = jsfutils.resolveExpressionAsString ("#{bindings.") PlantId.inputValue}"); attribute links plantid and plantname are created.
    String plantname = jsfutils.resolveExpressionAsString ("#{bindings.") PlantName.inputValue}");
    ID = plantid;
    name = plantname;
    Returns a null value.
    }

    {} public void setId (String id)
    This.ID = id;
    }

    public String getId() {}
    return the id;
    }

    public void setName (String name) {}
    myIdName = name;
    }

    public String getName() {}
    return the name.
    }
    }

    but here the problem is when I press the ok button in the popup, it throws an error IE.

    Error 500 - Internal server error

    javax.servlet.ServletException: java.lang.ClassCastException: oracle.jbo.domain.Number
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:421)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:421)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:94)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:414)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.doIt (WebAppServletContext.java:3684)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3650)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: javax.faces.el.EvaluationException: java.lang.ClassCastException: oracle.jbo.domain.Number
    at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
    at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
    at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:699)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:285)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    ... 34 more
    Caused by: java.lang.ClassCastException: oracle.jbo.domain.Number
    at oracle.adf.jsfutils.resolveExpressionAsString(jsfutils.java:111)
    at oracle.adf.full.act(full.java:12)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
    at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
    at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
    ... more than 42
    If someone can solve this...?

    Hello

    Sorry to say, but this code is a bit awkward:

    ViewObject vo = adfutils.findIterator("TestView1Iterator").getViewObject(); //EName and EId are attribute bindings.
    vo.getCurrentRow().setAttribute("EName",name);
    vo.getCurrentRow().setAttribute("EID",id);
    BindingContext cntx = BindingContext.getCurrent();
    cntx.getCurrentBindingsEntry().getOperationBinding("Commit").execute();
    

    Why don't you

    DCIteratorBinding dciter = (DCIteratorBinding) adfutils.findIterator("TestView1Iterator");
    Row currentRw = dciter.getCurrentRow();
    currentRW.setAttribute("EName",name);
    currentRw.setAttribute("EID",id);
    BindingContext cntx = BindingContext.getCurrent();
    cntx.getCurrentBindingsEntry().getOperationBinding("Commit").execute();
    

    But then, you use adfutils and the BindingContext, which is redundant. So lets get
    RID using EL in you manage code bean

    BindingContext cntx = BindingContext.getCurrent();
    BindingContainer bindings = cntx.getCurrentBindingsEntry();
    
    DCIteratorBinding dciter = (DCIteratorBinding)bindings.get("TestView1Iterator");
    Row currentRw = dciter.getCurrentRow();
    currentRW.setAttribute("EName",name);
    currentRw.setAttribute("EID",id);
    BindingContext cntx = BindingContext.getCurrent();
    OperationBinding commitBinding = (OperationBinding ) bindings.get("Commit");
    commitBinding.execute();
    

    Looks a lot better now and should work

    Frank

  • How to modify the table - webcenter sites v11.1.1.8

    Hello

    My version of sites is 11.1.1.8, then I can't see or go to your colleague, do someone know why?

    Description of e_sitesdatabase_small.png follows

    Hello

    This shape has been deleted. There is a documentation bug opened for her. See Doc ID 1600474.1.

    You can still access the menu via http://{host}:{port}/{context}/ContentServer?form=main&tool=CatalogMgt&pagename=FutureTense%2FApps%2FAdminForms%2FAdminForm&inifile=Variables.inifile

    Kind regards

    Stephan.

  • modify the table

    Hi all

    I have a table named xyz with views of this table .He is a column named rupees and its data type is number (11.2) I want to change this column rupees and you want to increase the length IE number rupees (11.3). How can I do this without droping table xyz that there are views made on this table.

    your help is appreciated, thank you.

    Kind regards.

    In fact when you change your NUMBER (11, 2) column to the NUMBER (11, 3) you are declining the precision of the column to 1. If you cannot make this change with the column data. To do this, you must take an approach illustrated by Hoek. But still the problem is that if there is existing data that has an accuracy of 9, then it does not fit in the precision of 8 and you will end up with the error. But if you decide to change NUMBER (12, 3) where precision will always be the same, then you can use the alter and you now question. Its all about choosing the right size.

  • result should be modify the table GRADE_CONVERSION MODIFIED_DATE add but "("come and why?

    Result:

    ALTER table GRADE_CONVERSION add MODIFIED_DATE (/ / result should be alter table GRADE_CONVERSION add MODIFIED_DATE but "(" entrée ) ")

    ALTER table GRADE_CONVERSION add CREATED_BY VARCHAR2 (30)

    ALTER table GRADE_CONVERSION add CREATED_DATE (/ / result should be alter table GRADE_CONVERSION add CREATED_DATE but "(" entrée ) ")

    ALTER table GRADE_CONVERSION add MODIFIED_BY VARCHAR2 (30)

    QUERY:

    CREATE TABLE 'ERHAN. "" GRADE_CONVERSION ".

    (VARCHAR2 (2) "LETTER_GRADE",)

    NUMBER (3.2) "GRADE_POINT" DEFAULT 0,

    NUMBER (3.0) "MAX_GRADE."

    NUMBER (3.0) "MIN_GRADE."

    VARCHAR2 (30) 'CREATED_BY. "

    DATE OF THE "CREATED_DATE,"

    VARCHAR2 (30) "MODIFIED_BY",.

    DATE OF THE "MODIFIED_DATE".

    );

    CREATE TABLE "SARIGUL. "" GRADE_CONVERSION ".

    (VARCHAR2 (2) "LETTER_GRADE",)

    NUMBER (3.2) "GRADE_POINT" DEFAULT 0,

    NUMBER (3.0) "MAX_GRADE."

    NUMBER (3.0) "MIN_GRADE".

    );

    with the CBC as

    (

    Select src.table_name src_table_name, src.column_name src_col_name, src.data_type src_data_type, src.data_length src_data_len, src.data_precision src_data_precision, src.data_scale src_data_scale,

    CBC. Nullable src_nullable, decode (T.Constraint_Type, 'P', 'Primary Key', 'U', 'Unique', ") as src_cons

    all_tab_columns CBC

    left join (select Cc.Column_Name, Uc.Constraint_Type

    of user_cons_columns cc, uc user_constraints

    where Cc.Constraint_Name = Uc.Constraint_Name

    and Cc.Table_Name = Uc.Table_Name) t

    on T.Column_Name = Src.Column_Name

    where table_name = 'GRADE_CONVERSION' and owner = 'ERHAN.

    ),

    As TGT

    (

    Select tgt.table_name tgt_table_name, tgt.column_name tgt_col_name, tgt.data_type tgt_data_type, tgt.data_length tgt_data_len,

    TGT.data_precision tgt_data_precision, tgt.data_scale tgt_data_scale, tgt.nullable tgt_nullable,

    Decode (T.Constraint_Type, 'P', 'Primary Key', 'U', 'Unique', ") as tgt_cons

    from all_tab_columns tgt

    left join (select Cc.Column_Name, Uc.Constraint_Type

    of user_cons_columns cc, uc user_constraints

    where Cc.Constraint_Name = Uc.Constraint_Name

    and Cc.Table_Name = Uc.Table_Name) t

    on T.Column_Name = TGT. Column_Name

    where table_name = 'GRADE_CONVERSION' and owner = 'SARIGUL.

    ),

    col_details as

    (

    Select src.src_table_name, nvl (tgt.tgt_table_name, first_value (tgt_table_name) more (order of nulls last tgt_table_name)) tgt_table_name;

    SRC.src_col_name, src.src_data_type, src.src_data_len, src.src_data_precision, src.src_data_scale, src.src_nullable, src_cons,

    TGT.tgt_col_name, tgt.tgt_data_type, tgt.tgt_data_len, tgt.tgt_data_precision, tgt.tgt_data_scale, tgt.tgt_nullable, tgt_cons

    the CBC

    outer join full tgt

    on)

    SRC.src_col_name = tgt.tgt_col_name

    )

    )

    Select *.

    BeO

    Select the case sensitive option

    When tgt_data_type! = src_data_type or tgt_data_len! = src_data_len or tgt_data_precision! = src_data_precision or tgt_data_scale! = src_data_scale or tgt_nullable! = src_nullable

    then 'alter table ' | tgt_table_name | 'Edit ' | tgt_col_name | ' ' || src_data_type | ' (' ||

    -case when src_data_type null ('DATE') then

    on the other

    case

    When src_data_type in ('VARCHAR', 'VARCHAR2')

    then nvl (to_char (src_data_len), ' ') | ') '

    otherwise decode (nvl (src_data_precision-1),-1, null, nvl (to_char (src_data_precision), ' ') |) ', ' || NVL (to_char (src_data_scale), ' ') | ')')

    end

    end

    ||

    cases where tgt_nullable = 'Y' then 'null '.

    of another end 'not null '.

    || tgt_cons

    When tgt_col_name is null

    then 'alter table ' | tgt_table_name | 'Add ' | src_col_name | ' ' ||  ' ' || ' ' || src_data_type | ' ' ||

    -case when src_data_type null ('DATE') then

    on the other

    case

    When src_data_type in ('VARCHAR', 'VARCHAR2')

    then nvl (to_char (src_data_len), ' ') | ') '

    otherwise decode (nvl (src_data_precision-1),-1, null, nvl (to_char (src_data_precision), ' ') |) ', ' || NVL (to_char (src_data_scale), ' ') | ')')

    end

    end

    || tgt_cons

    When src_col_name is null

    then 'alter table' | tgt_table_name: ' drop '. tgt_col_name

    end alter_statement

    of col_details

    )

    where alter_statement is not null;

    Result:

    ALTER table GRADE_CONVERSION add MODIFIED_DATE (/ / result should be alter table GRADE_CONVERSION add MODIFIED_DATE )

    ALTER table GRADE_CONVERSION add CREATED_BY VARCHAR2 (30)

    ALTER table GRADE_CONVERSION add CREATED_DATE (/ / result should be alter table GRADE_CONVERSION add CREATED_DATE )

    ALTER table GRADE_CONVERSION add MODIFIED_BY VARCHAR2 (30)

    Erhan, you need to change your script a little

    with the CBC as

    (

    Select src.table_name src_table_name, src.column_name src_col_name, src.data_type src_data_type, src.data_length src_data_len, src.data_precision src_data_precision, src.data_scale src_data_scale,

    CBC. Nullable src_nullable, decode (T.Constraint_Type, 'P', 'Primary Key', 'U', 'Unique', ") as src_cons

    all_tab_columns CBC

    left join (select Cc.Column_Name, Uc.Constraint_Type

    of user_cons_columns cc, uc user_constraints

    where Cc.Constraint_Name = Uc.Constraint_Name

    and Cc.Table_Name = Uc.Table_Name) t

    on T.Column_Name = Src.Column_Name

    where table_name = 'GRADE_CONVERSION' and owner = 'ERHAN.

    ),

    As TGT

    (

    Select tgt.table_name tgt_table_name, tgt.column_name tgt_col_name, tgt.data_type tgt_data_type, tgt.data_length tgt_data_len,

    TGT.data_precision tgt_data_precision, tgt.data_scale tgt_data_scale, tgt.nullable tgt_nullable,

    Decode (T.Constraint_Type, 'P', 'Primary Key', 'U', 'Unique', ") as tgt_cons

    from all_tab_columns tgt

    left join (select Cc.Column_Name, Uc.Constraint_Type

    of user_cons_columns cc, uc user_constraints

    where Cc.Constraint_Name = Uc.Constraint_Name

    and Cc.Table_Name = Uc.Table_Name) t

    on T.Column_Name = TGT. Column_Name

    where table_name = 'GRADE_CONVERSION2' and owner = 'SARIGUL.

    ),

    col_details as

    (

    Select src.src_table_name, nvl (tgt.tgt_table_name, first_value (tgt_table_name) more (order of nulls last tgt_table_name)) tgt_table_name;

    SRC.src_col_name, src.src_data_type, src.src_data_len, src.src_data_precision, src.src_data_scale, src.src_nullable, src_cons,

    TGT.tgt_col_name, tgt.tgt_data_type, tgt.tgt_data_len, tgt.tgt_data_precision, tgt.tgt_data_scale, tgt.tgt_nullable, tgt_cons

    the CBC

    outer join full tgt

    on)

    SRC.src_col_name = tgt.tgt_col_name

    )

    )

    Select *.

    de)

    Select the case sensitive option

    When tgt_data_type! = src_data_type or tgt_data_len! = src_data_len or tgt_data_precision! = src_data_precision or tgt_data_scale! = src_data_scale or tgt_nullable! = src_nullable

    then 'alter table ' | tgt_table_name | 'Edit ' | tgt_col_name | ' ' || src_data_type | ' ' ||

    -case when src_data_type null ('DATE') then

    on the other

    case

    When src_data_type in ('VARCHAR', 'VARCHAR2')

    then ' (' |) NVL (to_char (src_data_len), ' ') | ') '

    otherwise decode (nvl (src_data_precision-1),-1, null, nvl (to_char (src_data_precision), ' ') |) ', ' || NVL (to_char (src_data_scale), ' ') | ')')

    end

    end

    ||

    cases where tgt_nullable = 'Y' then 'null '.

    of another end 'not null '.

    || tgt_cons

    When tgt_col_name is null

    then 'alter table ' | tgt_table_name | 'Add ' | src_col_name | ' ' ||  ' ' || ' ' || src_data_type | ' ' ||

    -case when src_data_type null ('DATE') then

    on the other

    case

    When src_data_type in ('VARCHAR', 'VARCHAR2')

    then ' ('| nvl (to_char (src_data_len), ' ') |) ') '

    otherwise decode (nvl (src_data_precision-1),-1, null, nvl (to_char (src_data_precision), ' ') |) ', ' || NVL (to_char (src_data_scale), ' ') | ')')

    end

    end

    || tgt_cons

    When src_col_name is null

    then 'alter table' | tgt_table_name: ' drop '. tgt_col_name

    end alter_statement

    of col_details

    )

    where alter_statement is not null;

    Concerning

    Mr. Mahir Quluzade

  • How to insert sequence numbers in a column in the table:

    I'm going to the emp table:


    EmpNo enmae job
    1111 ramu Sager
    S.S.E COMER 7658
    8280 GETA INTERN


    modify the table emp Add number of sno

    sno for I must generate 1,2,3...

    How can I do this

    What is

    update emp set sno = somesequence.nextval where sno is null;
    
  • changing the table of facts in environmental impact assessment

    Hello

    I have added a new dimension to a fact table and created a new model of environmental impact assessment and the metaoutline. I would now change the fact table to match production. I changed it to sql and I'd like to be reflected in the model, but I don't see how. I prefer not to recreate the model. I don't want to lose the metaoutline or can associate you with another model?

    I hardly use HIA and would appreciate some guidace.

    Thank you

    Nathan

    No change of name he is going to be a problem, to do that you should drag the 'new' object in your model and remap it.

    For what it's worth, as a best practice, I always run my models to views in a relational database with generic names. So, I have a view called Fact_Table. If ever, then I remodel, I can modify the tables and update the definition of the view. Then in the OLAP model all I have to do is add or remove columns, but the object allows you to stay in touch.

  • How to modify a table that is owned by sys?

    I connected as sysdba and created a table. So I decided to remove a column from the table and Oracle gave me the following error message:

    ORA-12988: cannot remove column of table belonged to SYS

    I have read about the error and learned that I better not create tables when you are logged in as sys. So I can drop all the table, but not a column of the table.

    Why is that I can modify the table, but can't remove her columns when I am logged in as sys?
    Is it possible to remove columns from the table, that I created?
    What should I do with this table, I created under sys? Do I have to delete the entire table, because it is immutable?

    Published by: artanis April 12, 2010 03:47

    Hi Artanis,

    See for this just to ensure that everyone connected as user SYS should not intentionally or by mistake be no matter which column of a table that is owned by SYS because the sys user owns all the data dictionary tables and Oracle is not one of these tables in no case be changed or you can say that they do not want anything in the SYS schema should be modified by manual action as any structure of the object changes. This is the reason why it is advisable to do not create user objects in the sys schema.

  • 2 forms to modify the same table at the same time

    I have a block record multi and now we add more fields to the table. I thought I had
    users press a button for a specific record in the block and then he would open another form (or something like that)
    to set up a regular shape where they may enter these details).
    But then I think two forms at the same time, changing the same table is going to be a problem.
    right?
    Is there a way to do what I want? I want the user to choose and to be able to change some things of 'a grid.
    aka multi-record block and then be able to go to a non tabular entry in the details form. Is it possible to do?

    then he would open another form (or something like that)

    Could be another form, or just another block in a different window/canvas or even field in the same block using 'Reflect the elements' ('synchronize with' - property)

    But then I think two forms at the same time, changing the same table is going to be a problem.

    Not necessarily. If you use CALL_FORM or OPEN_FORM without having to open a new session it is no problem to do so. You just check that the modifications of the form "first" are recorded or posted at least before opening detailed form.

Maybe you are looking for

  • Password changed Keychain Uninvited guest

    I've been hacked, working with my router all afternoon, at the same time, I had a "guest" without be invited on my computer, which has locked me out of control of password to keychain... also can not delete the guest account.  How can I repair the da

  • Apple password rules

    I can't believe how many times I'm locked out of my account due to password problems. Why can I not use my password again once! I'm done < re-titled by host >

  • Satellite P300 - 15 d - cannot send to mobile phones via bluetooth

    Hello I recently bought a nokia 5230 for my wife. I associated with cell phone my cell phone and I am able to transfer photos from mobile to laptop computers, but in the way on the other side there is always a mistake... with other types of files tha

  • SignalExpress frequency control?

    I have a PXI-6713, and I try to use SignalExpress to generate and get out an analog waveform with frequency controlled by the user.  I think it's a simple task; I want just one button on my front panel that will allow me to select the frequency of th

  • report generation, 2 own excel graphics

    Hello everyone, I tried insertion of two paintings 2D into two tables, each table 2D in its own Charter. The problem is in the second table are both 2D arrays. You can see it in the attachments. I hope someone has a solution. Thank you very much in a