Replacing a table with a view

I have fact table in a subject area. Now due to some requirement we created a view for the same fact table and want to use the view in place of the table.Do we have a way to do it without redoing the whole process?

Hi Tintin,
yes, you can rename in the physical layer the table with the name of the view.
Regards,
Gianluca

Similar Messages

  • Table with tree view on master column

    Hi,
    I'm trying to generate a table with tree view on the master column and I get the table values from an RFC.
    The problem is that I need to control some properties like "expanded" or "isLeaf" and I can't add the value attributes to the model node to control the rows.
    Any ideia on how to overcome this (what i  think is a) problem?
    Thanks for the help.
    Pedro Barbosa

    Hi Subramanian,
    Maybe I didn't explain myself right. I also followed that tutorial with success but in this case i have on my custom controller:
    -MyNode (model node)
      - Output
        - MyTable
          - attribute 1 (model attribute)
    In my context/view controller the only way i can map that node is by using a model node referecing "MyTable" but this way i can't add any of my attributes to same level of the attributes (is that the ideia right?).
    I also tried to recreate the structure in the view with value nodes and value attributes with the same type as the model attributes and then bind them but i always get "Incompatible context element type".
    Am i missing something?
    Pedro Barbosa

  • Updating base table with Materialized View's data

    Hi,
    In order to update base table with MVs data, I am trying real time data transfer between two databases. One is Oracle 8i and other is Oracle 9i. I have created an updatable MV in 9i on a base table using database link. The base table is in 8i. Materialized View log is created in 8i on base table. MV has to be associated to some replication group, but I am not able to create replication group in 9i to which MV has to be associated. The required packages are not installed.
    Replication packages are to be used to create replication group are :
    /*Create Materialized View replication group*/
    BEGIN
    DBMS_REPCAT.CREATE_MVIEW_REPGROUP (
    gname => 'TEST_MV_GRP',
    master => 'TEST_DATA_LINK',
    propagation_mode => 'ASYNCHRONOUS');
    END;
    But above block is giving error.
    Can anyone suggest how to resolve this, or are there any other approaches (by not using replication packages) to update base table with MVs data ?
    Thanks,
    Shailesh

    Yes, I created link between two databases and was able to update tables on 8i from 9i database using that link.
    The error I am getting while creating replication group is :
    ORA-06550
    PLS-00201 : identifier 'SYS.DBMS_REPCAT_UTL2@'TEST_DATA_LINK' must be declared
    ORA-06550
    PLS-00201 : identifier 'SYS.DBMS_REPCAT_UNTRUSTED@'TEST_DATA_LINK' must be declared
    ORA-06512 : at "SYS.DBMS_REPCAT_UTL", line 2394
    ORA-06512 : at "SYS.DBMS_REPCAT_SNA_UTL", line 1699
    ORA-06512 : at "SYS.DBMS_REPCAT_SNA", line 64
    ORA-06512 : at "SYS.DBMS_REPCAT", line 1262
    Is there any other approach which can be used to update base table with MVs data instead of using replication packages ?
    Thanks,
    Shailesh

  • Can I replace my table with divs, in this context?

    Hi,
    I'm trying to accomplish something without the use of tables. Maybe someone can tell me how.
    - The skeleton is basically made up of 3 newspaper-style columns.
    - Their widths aren't very likely to change -- their widths will be fixed -- so this eliminates one problem right off the bat, right?
    - The first column (left) is a sidebar menu, and it has its own distinct background image pattern.
    - The other two columns (mid and right) share a flat background. Right now, I'm just calling the same 1k JPG twice (once in each of those two columns/cells). I find this simpler than creating an unnecessary container just for the common background.
    - All 3 columns begin at the same line (0).
    So far so good, the fixed widths and the fact that they all begin at y=0 makes this easier than it otherwise could have been.
    Now here's the tricky part :
    - The amount of content is different from page to page (some pages are longer than others), and the amount of content per column will also vary individually (so the sidebar might be the longest column in one file, the mid column could be the longest element in the next, and so on...)
    - The layout is horizontally centered.
    - All 3 columns need to end at the same spot, which will be dynamic from page to page (in other words, the backgrounds of these columns need to stretch/repeat until the end of the column with the most content, whichever of the 3 columns that may be on any given page).
    - There is a page-end image to display that is as wide as the combined 3 column widths.
    As you can imagine, using a table with 3 columns makes this easy as pie. But I was told to avoid tables whenever possible, so if there's an easy way to justapose 3 divs and have them behave like 3 cells of the same table -- without too much markup -- I'd give it a try, and potentially leave tables behind for good.
    It would be easy enough to create a large container div, horizontally center it, and left-float 3 divs inside it... but this doesn't address the problem of having to have those backgrounds repeat all the way to the end of the site. The way I just described, the backgrounds would vertically end wherever the content of that individual column ends.
    And since we know divs don't like height=100%, well...
    Any help would be appreciated.
    Thanks!

    Have you tried using Faux Columns?
    http://www.alistapart.com/articles/fauxcolumns/
    or Project Seven's Equal Height Columns script?
    http://www.projectseven.com/tutorials/css/pvii_columns

  • Deletion of DDIC Table with Maintaince View

    Hello,
    I try to delete a  table with existing maintance dialog. So first I deleted the generated objects in SE54.
    The corresponding funtion group is now no longer existing.
    When I now try to delete the table in SE11 I got the message that it is still used. System said it is used
    in an include of the deleted function group.
    But this include does not exists. Can not be display in se38.
    How can i delete this table.
    Ralf

    I think when you delete a table in SE11 that has a maintenance dialog, the system asks you if you want to delete the maintenance dialog as well, and in case it is the last one inside a function group, it will even offer to delete the entire function group.
    So maybe your solution could be to recreate the maintenance dialog and function group, then delete the table via SE11 and let the system do the cleanup.
    Thomas

  • Weird behaviour: join of a table with a view

    Hello,
    I'm evaluating Oracle 10g for the migration of an application currently running on
    Oracle 8i and I found a query that doesn't work as expected on the new release.
    The query is very simple and uses a table "T_Programm" and a view "V_Adresse".
    The column "Id" is the primary key of "T_Programm" and of type number, the other
    columns are varchar2.
    First I tried this:
    SELECT P.Id, A.Schluessel, P.Absender
    FROM V_Adresse A,T_Programm P
    WHERE A.Schluessel=P.Absender;
    with the following expected result:
    ID SCHLUESSEL ABSENDER
    10020 BZV BZV
    10000 BZV BZV
    1 BZV BZV
    But with the follwing query there are no results:
    SELECT P.Id, A.Schluessel, P.Absender
    FROM V_Adresse A, T_Programm P
    WHERE A.Schluessel=P.Absender
    AND P.Id=10020;
    Just for fun I tried another query:
    SELECT P.Id, A.Schluessel, P.Absender
    FROM V_Adresse A, T_Programm P
    WHERE A.Schluessel=P.Absender
    AND P.Id>10019 AND P.Id<10021;
    and I got the expected result:
    ID SCHLUESSEL ABSENDER
    10020 BZV BZV
    On the Oracle 8i with the same data there was no problem.
    Maybe there is something wrong with the index or the query optimizer?!?
    Is there any idea?
    thank you in advance
    Stephan

    Hello,
    the column and table names are in german, I hope that's not a problem.
    best regards
    Stephan
    Here are the describes:
    Table T_Programm:
    Name Null? Typ
    ID NOT NULL NUMBER(12)
    JAHRID NUMBER(12)
    TITELID NUMBER(12)
    WAEHRUNGID NUMBER(12)
    TYP VARCHAR2(4)
    KREDITORENKONTO VARCHAR2(32)
    DEBITORENKONTO VARCHAR2(32)
    BANKNAME VARCHAR2(256)
    BANKLEITZAHL VARCHAR2(32)
    KONTONUMMER VARCHAR2(32)
    UNTERSCHRIFT1 VARCHAR2(1024)
    UNTERSCHRIFT2 VARCHAR2(1024)
    UNTERSCHRIFT3 VARCHAR2(1024)
    UNTERSCHRIFT4 VARCHAR2(1024)
    EMSATZ NUMBER(5,2)
    BMSATZ NUMBER(5,2)
    SZSATZ NUMBER(5,2)
    VEDATUM DATE
    VEBETRAG VARCHAR2(256)
    BRIEFKOPF VARCHAR2(256)
    GRUSSZEILE VARCHAR2(256)
    TITEL_KURZ VARCHAR2(256)
    TITEL_LANG VARCHAR2(1024)
    ABSENDER VARCHAR2(32)
    View V_Adresse:
    Name Null? Typ
    MANDANTID NUMBER
    SCHLUESSEL VARCHAR2(32)
    P_ANREDE1 VARCHAR2(16)
    P_ANREDE2A VARCHAR2(16)
    P_ANREDE2B VARCHAR2(16)
    P_POSITION VARCHAR2(32)
    P_TITEL VARCHAR2(32)
    P_VORNAME VARCHAR2(32)
    P_NACHNAME VARCHAR2(32)
    P_ABTEILUNG VARCHAR2(64)
    P_TELEFON VARCHAR2(32)
    P_TELEFAX VARCHAR2(32)
    P_EMAIL VARCHAR2(64)
    P_INTERNET VARCHAR2(64)
    P_ANMERKUNG VARCHAR2(1024)
    O_KUERZEL VARCHAR2(32)
    O_ARTIKELA VARCHAR2(16)
    O_ZEILE1A VARCHAR2(64)
    O_ARTIKELB VARCHAR2(16)
    O_ZEILE1B VARCHAR2(64)
    O_ZEILE1 VARCHAR2(64)
    O_ZEILE2 VARCHAR2(64)
    O_ZEILE3 VARCHAR2(64)
    O_POSTFACH VARCHAR2(16)
    O_PLZPOSTFACH VARCHAR2(16)
    O_STRASSE VARCHAR2(64)
    O_PLZSTRASSE VARCHAR2(16)
    O_ORT VARCHAR2(64)
    O_TELEFON VARCHAR2(32)
    O_TELEFAX VARCHAR2(32)
    O_EMAIL VARCHAR2(64)
    O_INTERNET VARCHAR2(64)
    Here is the view statement:
    CREATE VIEW V_Adresse AS
    SELECT
    1 AS MandantId,
    P.Name AS Schluessel,
    P.Anrede1 AS P_Anrede1,
    P.Anrede2a AS P_Anrede2a,
    P.Anrede2b AS P_Anrede2b,
    P.Position AS P_Position,
    P.Titel AS P_Titel,
    P.Vorname AS P_Vorname,
    P.Nachname AS P_Nachname,
    P.Abteilung AS P_Abteilung,
    P.Telefon AS P_Telefon,
    P.Telefax AS P_Telefax,
    P.Email AS P_Email,
    P.Internet AS P_Internet,
    P.Anmerkung AS P_Anmerkung,
    O.Name AS O_Kuerzel,
    O.Artikela AS O_Artikela,
    O.Zeile1a AS O_Zeile1a,
    O.Artikelb AS O_Artikelb,
    O.Zeile1b AS O_Zeile1b,
    O.Zeile1 AS O_Zeile1,
    O.Zeile2 AS O_Zeile2,
    O.Zeile3 AS O_Zeile3,
    O.Postfach AS O_Postfach,
    O.PLZPostfach AS O_PLZPostfach,
    O.Strasse AS O_Strasse,
    O.PLZStrasse AS O_PLZStrasse,
    O.Ort AS O_Ort,
    O.Telefon AS O_Telefon,
    O.Telefax AS O_Telefax,
    O.Email AS O_Email,
    O.Internet AS O_Internet
    FROM
    T_Organisation O,
    T_Person P
    WHERE
    O.Id=P.OrganisationId
    UNION
    SELECT
    1 AS MandantId,
    O.Name AS Schluessel,
    '' AS P_Anrede1,
    '' AS P_Anrede2a,
    '' AS P_Anrede2b,
    '' AS P_Position,
    '' AS P_Titel,
    '' AS P_Vorname,
    '' AS P_Nachname,
    '' AS P_Abteilung,
    '' AS P_Telefon,
    '' AS P_Telefax,
    '' AS P_Email,
    '' AS P_Internet,
    '' AS P_Anmerkung,
    O.Name AS O_Kuerzel,
    O.Artikela AS O_Artikela,
    O.Zeile1a AS O_Zeile1a,
    O.Artikelb AS O_Artikelb,
    O.Zeile1b AS O_Zeile1b,
    O.Zeile1 AS O_Zeile1,
    O.Zeile2 AS O_Zeile2,
    O.Zeile3 AS O_Zeile3,
    O.Postfach AS O_Postfach,
    O.PLZPostfach AS O_PLZPostfach,
    O.Strasse AS O_Strasse,
    O.PLZStrasse AS O_PLZStrasse,
    O.Ort AS O_Ort,
    O.Telefon AS O_Telefon,
    O.Telefax AS O_Telefax,
    O.Email AS O_Email,
    O.Internet AS O_Internet
    FROM
    T_Organisation O;

  • How do I replace one table with another

    In my swing application I go out over the network and retrieve information, and then present that info in a table. Problem is this button can be pressed more than once, so in this case the old table needs to be replaced. Looking through the API their does not seem ot be a remove to compliment add. Right now when I hit the button multiple times another table just gets added to the right of the previous table.
    So how do I get rid of the first table?
    m

    Im not that advanced yet -- although I have looked over the literature and understand what you mean. Seems to me tables are more complicated than other swing elements. In any case, the container class DOES have a remove method, which is being used succesfully. Thanx for replying.
    m

  • Delete append of a table with dependend view

    Hi there,
    I would like to delete an append structure of a table. Therefore I deleted the appended Z structure in SE11.
    But I could not activate the table after wards because there is a database view which depends on that table and contains also the appended field. Is there a way to delete this field from the view or regenerate the view without registering the view as a modification?
    Thanks in advance,
    Martin

    Hi Fisher,
    First check the table where used list and check the Include structure fieds are used..
    if include structure fields are being used it will not allow you to delete if deleted forcl also the reports go to dump..
    when ever you alter the table or adding new field the mainatainance view will not work..
    so activate the databse in background --> through menu-->utilities--> data base utilities--> adjust the datase and activate..
    regards,
    Prabhudas

  • SQL Server 2012 Undetected Deadlock in a table with only one row

      We have migrated our SQL 2000 Enterprise Database to SQL 2012 Enterprise few days ago.
      This is our main database, so most of the applications access it.
      The day after the migration, when users started to run tasks, the database access started to experiment a total failure.
      That is, all processes in the SQL 2k12 database were in lock with each other. This is a commom case of deadlock, but the Database Engine was unable to detect it.
      After some research, we found that the applications were trying to access a very simple table with only one row. This table has a number that is restarted every day and is used to number all the transactions made against the system.   So, client
    applications start a new transaction, get the current number, increment it by one and commit the transaction.
      The only solution we found was to kill all user processes in SQL Server every time this situation occurs (no more than 5 minutes when all clients are accessing the database).
      No client application was changed in this migration and this process was working very well for the last 10 years.
      The problem is that SQL 2k12 is unable to handle this situation compared to SQL 2k.
      It seems to occurs with other tables too, but as this is an "entry table" the problem occurs with it first.
      I have searched internet and some suggest some workarounds like using table hints to completely lock the table at the begining of the transaction, but it can't be used to other tables.
      Does anyone have heard this to be a problem with SQL 2k12? Is there any fixes to make SQL 2k12 as good as SQL 2k?

    First off re: "Unfortunatelly, this can't be used in production environment as exclusive table lock would serialize the accesses to tables and there will be other tables that will suffer with this problem."
    This is incorrect. 
    Using a table to generate sequence numbers like this is a bad idea exactly because the access must be serialized.  Since you can't switch to a SEQUENCE object, which is the correct solution, the _entire goal_ of this exercise to find a way to properly
    serialize access to this table.  Using exclusive locking will not be necessary for all the tables; just for the single-row table used for generating sequence values with a cursor.
    I converted the sample program to VB.NET:
    Public Class Form1
    Private mbCancel As Boolean = False
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    Dim soConn As ADODB.Connection
    Dim soRst As ADODB.Recordset
    Dim sdData As Date
    Dim slValue As Long
    Dim slDelay As Long
    'create database vbtest
    'go
    ' CREATE TABLE [dbo].[ControlNumTest](
    ' [UltData] [datetime] NOT NULL,
    ' [UltNum] [int] NOT NULL,
    ' CONSTRAINT [PK_CorreioNumTeste] PRIMARY KEY CLUSTERED
    ' [UltData] Asc
    ' )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
    ' ) ON [PRIMARY]
    mbCancel = False
    Do
    ' Configure the Connection object
    soConn = New ADODB.Connection
    With soConn
    .ConnectionString = "Provider=SQLNCLI11;Initial Catalog=vbtest;Data Source=localhost;trusted_connection=yes"
    .IsolationLevel = ADODB.IsolationLevelEnum.adXactCursorStability
    .Mode = ADODB.ConnectModeEnum.adModeReadWrite
    .CursorLocation = ADODB.CursorLocationEnum.adUseServer
    .Open()
    End With
    ' Start a new transaction
    Call soConn.BeginTrans()
    ' Configure the RecordSet object
    soRst = New ADODB.Recordset
    With soRst
    .ActiveConnection = soConn
    .CursorLocation = ADODB.CursorLocationEnum.adUseServer
    .CursorType = ADODB.CursorTypeEnum.adOpenForwardOnly
    .LockType = ADODB.LockTypeEnum.adLockPessimistic
    .Open("SELECT * FROM dbo.ControlNumTest")
    End With
    With soRst
    sdData = .Fields!UltData.Value ' Read the last Date (LOCK INFO 1: See comments bello
    slValue = .Fields!UltNum.Value ' Read the last Number
    If sdData <> Date.Now.Date Then ' Date has changed?
    sdData = Date.Now.Date
    slValue = 1 ' Restart number
    End If
    .Fields!UltData.Value = sdData ' Update data
    .Fields!UltNum.Value = slValue + 1 ' Next number
    End With
    Call soRst.Update()
    Call soRst.Close()
    ' Ends the transaction
    Call soConn.CommitTrans()
    Call soConn.Close()
    soRst = Nothing
    soConn = Nothing
    txtUltNum.Text = slValue + 1 ' Display the last number
    Application.DoEvents()
    slDelay = Int(((Rnd * 250) + 100) / 100) * 100
    System.Threading.Thread.Sleep(slDelay)
    Loop While mbCancel = False
    If mbCancel = True Then
    Call MsgBox("The test was canceled")
    End If
    Exit Sub
    End Sub
    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
    mbCancel = True
    End Sub
    End Class
    And created the table
    CREATE TABLE [dbo].[ControlNumTest](
    [UltData] [datetime] NOT NULL,
    [UltNum] [int] NOT NULL,
    CONSTRAINT [PK_CorreioNumTeste] PRIMARY KEY CLUSTERED
    [UltData] Asc
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = on, FILLFACTOR = 80) ON [PRIMARY]
    ) ON [PRIMARY]
    go insert into ControlNumTest values (cast(getdate()as date),1)
    Then ran 3 copies of the program and generated the deadlock:
    <deadlock>
    <victim-list>
    <victimProcess id="processf27b1498" />
    </victim-list>
    <process-list>
    <process id="processf27b1498" taskpriority="0" logused="0" waitresource="KEY: 35:72057594039042048 (a01df6b954ad)" waittime="1970" ownerId="3181" transactionname="implicit_transaction" lasttranstarted="2014-02-14T15:49:31.263" XDES="0xf04da3a8" lockMode="X" schedulerid="4" kpid="9700" status="suspended" spid="51" sbid="0" ecid="0" priority="0" trancount="2" lastbatchstarted="2014-02-14T15:49:31.267" lastbatchcompleted="2014-02-14T15:49:31.267" lastattention="1900-01-01T00:00:00.267" clientapp="vbt" hostname="DBROWNE2" hostpid="21152" loginname="NORTHAMERICA\dbrowne" isolationlevel="read committed (2)" xactid="3181" currentdb="35" lockTimeout="4294967295" clientoption1="671088672" clientoption2="128058">
    <executionStack>
    <frame procname="adhoc" line="1" stmtstart="80" sqlhandle="0x020000008376181f3ad0ea908fe9d8593f2e3ced9882f5c90000000000000000000000000000000000000000">
    UPDATE [dbo].[ControlNumTest] SET [UltData]=@Param000004,[UltNum]=@Param000005 </frame>
    <frame procname="unknown" line="1" sqlhandle="0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000">
    unknown </frame>
    </executionStack>
    <inputbuf>
    (@Param000004 datetime,@Param000005 int)UPDATE [dbo].[ControlNumTest] SET [UltData]=@Param000004,[UltNum]=@Param000005 </inputbuf>
    </process>
    <process id="processf6ac9498" taskpriority="0" logused="10000" waitresource="KEY: 35:72057594039042048 (a01df6b954ad)" waittime="1971" schedulerid="5" kpid="30516" status="suspended" spid="55" sbid="0" ecid="0" priority="0" trancount="1" lastbatchstarted="2014-02-14T15:49:31.267" lastbatchcompleted="2014-02-14T15:49:31.267" lastattention="1900-01-01T00:00:00.267" clientapp="vbt" hostname="DBROWNE2" hostpid="27852" loginname="NORTHAMERICA\dbrowne" isolationlevel="read committed (2)" xactid="3182" currentdb="35" lockTimeout="4294967295" clientoption1="671156256" clientoption2="128058">
    <executionStack>
    <frame procname="adhoc" line="1" sqlhandle="0x020000003c6309232ab0edbe0a7790a816a09c4c5ac6f43c0000000000000000000000000000000000000000">
    FETCH API_CURSOR0000000000000001 </frame>
    <frame procname="unknown" line="1" sqlhandle="0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000">
    unknown </frame>
    </executionStack>
    <inputbuf>
    FETCH API_CURSOR0000000000000001 </inputbuf>
    </process>
    </process-list>
    <resource-list>
    <keylock hobtid="72057594039042048" dbid="35" objectname="vbtest.dbo.ControlNumTest" indexname="PK_CorreioNumTeste" id="lockff6e6c80" mode="U" associatedObjectId="72057594039042048">
    <owner-list>
    <owner id="processf6ac9498" mode="S" />
    <owner id="processf6ac9498" mode="U" requestType="wait" />
    </owner-list>
    <waiter-list>
    <waiter id="processf27b1498" mode="X" requestType="convert" />
    </waiter-list>
    </keylock>
    <keylock hobtid="72057594039042048" dbid="35" objectname="vbtest.dbo.ControlNumTest" indexname="PK_CorreioNumTeste" id="lockff6e6c80" mode="U" associatedObjectId="72057594039042048">
    <owner-list>
    <owner id="processf27b1498" mode="U" />
    <owner id="processf27b1498" mode="U" />
    <owner id="processf27b1498" mode="X" requestType="convert" />
    </owner-list>
    <waiter-list>
    <waiter id="processf6ac9498" mode="U" requestType="wait" />
    </waiter-list>
    </keylock>
    </resource-list>
    </deadlock>
    It's the S lock that comes from the cursor read that's the villian here.  U locks are compatible with S locks, so one session gets a U lock and another gets an S lock.  But then the session with an S needs a U, and the session with a U needs an
    X.  Deadlock. 
    I'm not sure what kind of locks were taken by this cursor code on SQL 2000, but on SQL 2012, this code is absolutely broken and should deadlock.
    The right way to fix this code is to add (UPDLOCK,SERIALIZABLE) to the cursor
    .Open("SELECT * FROM dbo.ControlNumTest with (updlock,serializable)")
    So each session reads the table with a restrictive lock, and you don't mix S, U and X locks in this transaction.  This resolves the deadlock, but requires a code change.
    I tried several things that didn't require a code, which did not resolve the deadlock;
    1) setting ALLOW_ROW_LOCKS=OFF ALLOW_PAGE_LOCKS=OFF
    2) SERIALIZABLE isolation level
    3) Switching OleDB providers from SQLOLEDB to SQLNCLI11
    Then I replaced the table with a view containing a lock hint:
    CREATE TABLE [dbo].[ControlNumTest_t](
    [UltData] [datetime] NOT NULL,
    [UltNum] [int] NOT NULL,
    CONSTRAINT [PK_CorreioNumTeste] PRIMARY KEY CLUSTERED
    [UltData] Asc
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = on, FILLFACTOR = 80) ON [PRIMARY]
    ) ON [PRIMARY]
    go
    create view ControlNumTest as
    select * from ControlNumTest_t with (tablockx)
    Which, at least in my limited testing, resovlved the deadlock without any client code change.
    David
    David http://blogs.msdn.com/b/dbrowne/

  • X$  tables  Mapped with V_$ Views

    Hi,
    How X$  tables are mapped with V_$ views and  GV_ views?
    I need X$ table of  V_$LOGMNR_CONTENTS and  X$ table with other Views?
    Br,
    Raj

    Hi,
    I tried but confusing......
    select DBMS_METADATA.GET_DDL('SYNONYM','V$LOGMNR_CONTENTS','PUBLIC')  from dual;
    CREATE OR REPLACE PUBLIC SYNONYM "V$LOGMNR_CONTENTS" FOR "SYS"."V_$LOGMNR_CONTENTS"
    select DBMS_METADATA.GET_DDL('VIEW','V_$LOGMNR_CONTENTS','SYS')  from dual;
    CREATE OR REPLACE FORCE VIEW "SYS"."V_$LOGMNR_CONTENTS" ("SCN", "START_SCN", "
    COMMIT_SCN", "TIMESTAMP", "START_TIMESTAMP", "COMMIT_TIMESTAMP", "XIDUSN", "XIDS
    LT", "XIDSQN", "XID", "PXIDUSN", "PXIDSLT", "PXIDSQN", "PXID", "TX_NAME", "OPERA
    TION", "OPERATION_CODE", "ROLLBACK", "SEG_OWNER", "SEG_NAME", "TABLE_NAME", "SEG
    _TYPE", "SEG_TYPE_NAME", "TABLE_SPACE", "ROW_ID", "USERNAME", "OS_USERNAME", "MA
    CHINE_NAME", "AUDIT_SESSIONID", "SESSION#", "SERIAL#", "SESSION_INFO", "THREAD#"
    , "SEQUENCE#", "RBASQN", "RBABLK", "RBABYTE", "UBAFIL", "UBABLK", "UBAREC", "UBA
    SQN", "ABS_FILE#", "REL_FILE#", "DATA_BLK#", "DATA_OBJ#", "DATA_OBJV#", "DATA_OB
    JD#", "SQL_REDO", "SQL_UNDO", "RS_ID", "SSN", "CSF", "INFO", "STATUS", "REDO_VAL
    UE", "UNDO_VALUE", "SAFE_RESUME_SCN", "CSCN", "OBJECT_ID", "EDITION_NAME", "CLIE
    NT_ID") AS
      select "SCN","START_SCN","COMMIT_SCN","TIMESTAMP","START_TIMESTAMP","COMMIT_TI
    MESTAMP","XIDUSN","XIDSLT","XIDSQN","XID","PXIDUSN","PXIDSLT","PXIDSQN","PXID","
    TX_NAME","OPERATION","OPERATION_CODE","ROLLBACK","SEG_OWNER","SEG_NAME","TABLE_N
    AME","SEG_TYPE","SEG_TYPE_NAME","TABLE_SPACE","ROW_ID","USERNAME","OS_USERNAME",
    "MACHINE_NAME","AUDIT_SESSIONID","SESSION#","SERIAL#","SESSION_INFO","THREAD#","
    SEQUENCE#","RBASQN","RBABLK","RBABYTE","UBAFIL","UBABLK","UBAREC","UBASQN","ABS_
    FILE#","REL_FILE#","DATA_BLK#","DATA_OBJ#","DATA_OBJV#","DATA_OBJD#","SQL_REDO",
    "SQL_UNDO","RS_ID","SSN","CSF","INFO","STATUS","REDO_VALUE","UNDO_VALUE","SAFE_R
    ESUME_SCN","CSCN","OBJECT_ID","EDITION_NAME","CLIENT_ID" from V_$LOGMNR_CONTENTS
    Why does V_$LOGMNR_CONTENTS contains V_$LOGMNR_CONTENTS?
    Br,
    Raj

  • Updated my iPad 2 to ios6 and wish I didn't. Lost the wonderful maps app and I'm miserable.  Is there a replacement app coming from google with street view for iPad?

    Looking to the community for a suggestion for the best replacement map app for my ipad2.  I regret "upgrading" to ios6 when I lost the old maps app.  I used it daily and had perfect functionality for my purposes.  Now I wish I'd researched it more before I clicked '"install."  Is there a google replacement coming soon with street view that works like the old one?  Is apple working on fixing the existing app to include the features of the old app?   So sad....wish I could go back!

    I tried the google Maps app on my iPad2 but it looked terrible.  Blurry when expanded to 2X, clumsy and not intuitive.  Terrible for my purposes and way different from the old Google Maps app.  Per International Business Times (12/13/12):
    "While iOS users may be rejoicing at the return of their favorite navigation app, it should be noted that Google Maps has not yet launched for the iPad. The version currently available in Apple’s App Store is only for the iPhone, and Apple Maps will still act a the default Maps App on iPhones even after Google Maps has been installed."
    Perhaps it'll look/behave better when an iPad version is eventually released.   But thank you anyway.
    Gonna try the EggMapsHD.  Just wish there were some reviews out there.
    CJL4603

  • Replaced Table with Command, now have duplicate records

    Hi all,
    I'm not sure if there is a problem with my command, or if I'm not doing something correctly within Crystal itself.
    I replaced a table with a command. The command is filtering the dataset as I wanted but for some reason I'm getting duplicate records in the report. I tried using the Distinct keyword, but that doesn't seem to help.
    Any suggestions?
    SELECT DISTINCT BI_CLOSE_DT, BI_OPEN_DT, BI_SO_COM, BI_SO_NBR, BI_ACCT, BI_SO_DET_KEY,BI_SO_STAT_CD, BI_SO_TO_ACCT, BI_SO_TO_CUST_NBR, BI_SO_TYPE_CD, BI_SRV_LOC_NBR
    FROM BI_SO_DET
    WHERE (BI_SO_STAT_CD = 'X'
    and BI_SO_TYPE_CD IN  ( 'NEW', 'NCBM', 'NEW-WF' )
    and BI_SO_TO_ACCT IS NOT NULL)

    .. coworker helped me realize the data was actually correct; I was getting the complete dataset as I should with duplicates and just needed to filter out the duplicates by using the grouping function on the unique id. All good now

  • Lookup table with a block based on a view

    Hi!
    My form contain one module component based on a view, one of the items of my block is a libelle that exist in one
    of the tables queried by the view.
    my question is :
    how can I have a LOV on this item in order that the user select a value for a query???
    or, can I make a lookup table with a view ????
    Thanks!

    You said you copied an existing item in the block, and then copied an existing item in the layout editor - is it possible you actually created 2 separate items? Remove the one in the layout editor, and set the canvas of the one in the block so it is displayed in the layout editor. That could be the problem.

  • How can I see changes in table with insertrow();postchanges()without commit

    Hi friends;
    I use jdeveloper 10.1.3.1 with jheadstart 10.1.3.1.
    I create two view object.In the first page I create table with one view object.
    In the second page I create table (with tableselectmany) with other view.
    I select many rows in second page and in the managed bean,
    I insert selectted rows atributes to first pages tables attributes.
    I use this code.
    public String commandbuttonaction(){
    CoreTable table = this.getTable1();
    Set rowSet = table.getSelectionState().getKeySet();
    Iterator rowSetIter = rowSet.iterator();
    BindingContainer bindings = getBindings();
    DCIteratorBinding pr_dcib = (DCIteratorBinding)
    bindings.get("DeptIterator");
    int i=206;
    while (rowSetIter.hasNext()){
    Key key = (Key) rowSetIter.next();
    pr_dcib.setCurrentRowWithKey(key.toStringFormat(true));
    RowImpl prRow = (RowImpl) pr_dcib.getCurrentRow();
    String AM="model.AppModule";
    String CF="AppModuleLocal";
    ApplicationModule empSvc = Configuration.createRootApplicationModule(AM, CF);
    ViewObject emps = empSvc.findViewObject("EmpsView1");
    Row newEmp = emps.createRow();
    newEmp.setAttribute("Manager",new Number(1));
    newEmp.setAttribute("Department",new Number(1));
    newEmp.setAttribute("Depno",new Number(3));
    emps.insertRow(newEmp);
    try {
    newEmp.validate();
    catch (Exception ex) {
    System.out.println("validate catch");
    try {
    empSvc.getTransaction().postChanges();
    catch (Exception ex) {
    System.out.println("post catch");
    Configuration.releaseRootApplicationModule(empSvc,true);
    i=i+1;
    In this code I only postchanges() in first view and dont want to commit.
    But I cant see changes row in the page .If I press save I see transaction completed succesfully message.
    But in database not insertted any rows.
    If I write commit() after postchanges() code I see rows in the table .But I dont want to commit.Only post
    my changes and if necessary I press save button in page.
    How can I see changes in the page without commit???Thanks for all....

    You should NEVER use statements like this in managed beans:
    ApplicationModule empSvc = Configuration.createRootApplicationModule(AM, CF);
    This will create a separate application module instance, not shared by the the web pages. That's why you do not see the changes.
    Instead, you can use the following code:
    ApplicationModule am = (ApplicationModule)JsfUtils.getExpressionValue("#{data.MyAppModuleDataControl.dataProvider}");
    where MyAppModuleDataControl shoud be replaced with the name of your am data control.
    Steven Davelaar,
    JHeadstart Team.

  • How to create a table with events in smartforms?

    How to create a table with events view in smartforms?
    It doesn't like general table with header, main area and footer.
    for example:
    in smartforms: LE_SHP_DELNOTE
    table name is TABLEITEM(Delivery items table)

    Vel wrote:
    I am creating XML file using DBMS_XMLGEN package. This XML file will contain data from two different database tables. So I am creating temporary table in the PL/SQL procedure to have the data from these different tables in a single temporary table.
    Please find the below Dynamic SQL statements that i'm using for create the temp table and inserting the data into it.
    Before insert the V_NAME filed, i will be appending a VARCHAR field to the original data.
    EXECUTE IMMEDIATE 'CREATE TABLE TEMP_TABLE (UNIQUE_KEY NUMBER , FILE_NAME VARCHAR2(1000), LAST_DATE DATE)';
    EXECUTE IMMEDIATE 'INSERT INTO TEMP_TABLE values (SEQUENCE.nextval,:1,:2)' USING V_NAME,vLastDate;What exactly i need is to eliminate the INSERT portion of it,Since i have to insert more 90,000 rows into it. Is there way to have the temp table created with data in it along with the sequence value as well.
    I'm using Oracle 10.2.0.4 version.
    Edited by: 903948 on Dec 22, 2011 10:58 PMWhat you need to do to eliminate the INSERT statement is to -- as already suggested by others - eliminate the temporary table. You don't need it. It is just necessary overhead. Please explain why you (apparently) believe that the suggestion of a view will not meet your requirements.

Maybe you are looking for

  • My 2009 Macbook Pro turns off every 5-15 minutes

    Yeah, the problem started happening a couple of months ago, but it wasn't that big of a deal. I found that if I were to turn it off nightly it would behave better. It was fine for a while, but as of late it will shut off about every 5-15 minutes.It w

  • Where to keep .rdf file in Oracle 9iAS to generate Report ?

    Hello friends, We r using Oracle 9iAS and want to generate the Report but do not know the exact folder(or can say path) to keep .rdf file ? Generally, we keep .rdf file in Orahome/Reports/Samples/Demo/x.rdf but it doesn't work in case of Oracle 9iAS.

  • LG Ally and One Drop of Water

    My wife was using her new LG Ally phone (4 days old). She apparently had a drop of water on her finger and when she switched open the keyboard the phone went dead. We tried charging it and it came on but only had 4% charge. We took it to a store and

  • Albums stuck

    Albums stuck - when I select photos > albums the pictures I've taken are in the albums but seem to be stuck.  i can't view them anymore.  help?

  • Red dates for birthdays only in January all the rest are in black

    I have set my calendar up and I can't find a way to make all the birthdays in red for the rest of the months. I can change the text but not the date..