Query slow in  user schema but fast in sys schema

Hi,
DB :10.2.
OS :Aix
Tool : Toad
We executed a query which fast(20 seconds) in sys schema.
But it's taking slow in user schema(it is taken 10 minutes).
Yesterday we gathered dictionary stats also.
Any suggestions.
Thanks & Regards,
VN

You're querying a bunch of USER_<<x>> data dictionary views. Since those views show the objects owned by the current user, the script you generate will be completely different depending on the identity of the current user and the set of objects owned by the current user. If you create a new user and run this script as the new user, it will be even faster because USER_TABLES, USER_SEGMENTS, USER_INDEXES, etc. will all be empty.
I don't understand why you would issue a MOVE on a table without specifying a new tablespace-- that seems like a pointless exercise. And I would seriously question the architect that wants to use ANALYZE to gather statistics rather than using DBMS_STATS.
Justin

Similar Messages

  • Same select max is very slow in one program but fast in another

    Hi,
    I have a report that becomes very slow these few months. I used SQL trace for the report and found out its these codes that slow down the report:
    SELECT MAX( mkpf~budat )
                  FROM mkpf
        INNER JOIN mseg
                       ON mseg~mblnr = mkpf~mblnr AND mseg~mjahr = mkpf~mjahr
                    INTO posting_date
               WHERE mseg~werks  = w_matl-batch_reservations-werks
                     AND mseg~charg  = w_matl-batch_reservations-charg
                     AND mseg~bwart  IN ('261', 'Z61').
    The thing is these codes have been used in different system, DEV, QAS, and PRD. But only in PRD it is very slow, other systems are pretty fast.
    I even created a local copy of that report in PRD, with the same code. The local file runs fast and perfectly. But the original code is just slow.
    Just wondering if anybody met this problem too? any ideas??

    Hi Liu,
    Index creation is not a advisable solution.Please follow the existing indexes by adding Mandt field.
    Try like this
    SELECT MAX( mkpf~budat )
                  FROM mkpf
        INNER JOIN mseg
                       ON mseg~mblnr = mkpf~mblnr AND mseg~mjahr = mkpf~mjahr
                    INTO posting_date
               WHERE mseg~mandt = sy-mandt
                      AND mkpf~mandt = sy-mandt
                      AND mseg~werks  = w_matl-batch_reservations-werks
                     AND mseg~charg  = w_matl-batch_reservations-charg
                     AND mseg~bwart  IN ('261', 'Z61').
    Hope it will be helpful.
    Regards,
    Kannan

  • Very slow network directory listing - but fast data transfer speed once listed?

    Hello,
    I have really tried to sort this myself before opening up to the community, however I have run out of ideas, and hope someone can offer the magic solution I have missed.
    I am currently using the 3.4ghz i7 iMac on a 1GB LAN, running OSX10.7.2 - connecting to a Windows Server 2008 (Running Release 2) over ethernet.
    If i go to a network directory that i haven't recently accessed it can take up to 60 seconds to show the contents of that directory. Once i have accessed that folder, if i come out of it and go back in it will be instant again - but the first time it lists the directory it looks like i have opened an empty folder - which after anything from 10seconds to 1 minute will suddenly show the files that are there.
    Internet connectivity is fast through the network, and file transfers across the LAN are fast. (showing as approx 300mb per second) I can play and edit HD content across the network with no slowdown so I am confident that this issue is not related to the network speed itself, and is more to do with a setting on this mac.
    Symptoms are very similar to this post: https://discussions.apple.com/message/12245148?messageID=12245148&amp%3b#1224514 8 - however i understand that in OSX Lion - SMB was removed - so i cannot find this file to edit.
    I have tried bypassing additional hubs in the network by wiring direct cables to the switch that is connected to the file server, this made no difference.
    I have also tried disconnecting the ethernet cable, and running over wifi. This fixes the listing problem, but when editing HD content over a network drive, this connection is not fast enough to carry the data without interruption (some projects are linked to up to 900gb of hd video content!)
    Using ethernet, I have tried DHCP, DHCP with manual address, and manual mode. All reproduce this problem. i have tried using the windows workgroup, and tried without it.
    I have also followed this suggestion: https://discussions.apple.com/thread/2134936?threadID=2134936&tstart=45 and used OpenDNS. this did not fix the issue.
    For argument sake, I have also just tested a Macbook Pro running Snow Leopard to see if it was OS related. This reproduces the exact same problem, near instant directory listing on the wifi, a long and arduous wait on ethernet.
    I cannot work out why directory listing is instant over wifi, but not over ethernet on 2 different macs, running 2 different versions of OSX. I also do not understand why if the network is having trouble listing the directories - the data transfer speed is 300mbps when i copy files across the wired network from the file server to the mac.
    Does anyone have any other ideas as to what could be the problem here? We are about to start work on a very large project, where the content we are editing is spread out across around 200 different network folders (different shoots captured over the past 2 years). We really don't have the time to wait 60 seconds each time we need to access one of those directories to look for a file, and I am very close to pulling all my hair out!
    I really look forward to hearing from anyone who can offer any insight.

    If you are suspecting that the Windows update had something to do with your LAN going slow, then try the following:
    1.  Look for updates for your clients LAN NIC driver; or
    2.  Un-install the updates.

  • Camera raw 7 slow zoom in/out ,but fast process 2003 or 2010

    Hi
    i did notice that zoom in or out in camera raw is slow , even in middle pc , i'm not talking about hi end pc
    but i did find it's amazing fast if use process 2003 or 2010
    may i use like default the 2003 or 2010 ?
    how can i do it?
    thanks
    cheers

    mantralightroom wrote:
    but do you why 2010 is so slow compared to 2010 o 2003 ?
    Just a suspicion:  Adobe is adding more and more compute-intensive functionality in the newer versions - for example image analysis that affects the way the PV2012 controls work - in anticipation of more and more powerful computers.  It's the normal way of things.
    PV2012 seems to take about twice as long for me to complete a conversion than its predecessor.  But on my reasonably powerful computer that's the difference between 2 and 4 seconds - no problem, really.
    I'm not sensing any difference in zoom speed.
    everytime i load a canon raw file , it 's always to 2012!
    what 's wrong?
    I don't know.  Photoshop CS5 comes up with PV2010 for me for images I haven't opened before, because that's what I saved my Camera Raw Defaults as.   I don't use the camera serial number/ISO specificity settings though.
    Are you thinking of updating to Photoshop CS6?  I mention this because the released version is available today.
    -Noel

  • SQL query slow when issued by app, fast when issued mnaually

    Hi there,
    I have a more general question about a specific Oracle behaviour.
    I update a feature from within an application. The application doesn't respond and I finally have to terminate it. I checked Oracle whether a query is running long using the following statement:
    select s.username,s.sid,s.serial#,s.last_call_et/60 mins_running,q.sql_text from v$session s
    join v$sqltext_with_newlines q
    on s.sql_address = q.address
    where status='ACTIVE'
    and type <>'BACKGROUND'
    and last_call_et> 60
    order by sid,serial#,q.piece
    The result of the above query is:
    WITH CONNECTION AS ( SELECT * FROM WW_CONN C WHERE (C.FID_FROM I
    N (SELECT FID FROM WW_LINE WHERE FID_ATTR=:B1 ) AND C.F_CLASS_ID
    FROM =22) OR (C.FIDTO IN (SELECT FID FROM WW_LINE WHERE FID_AT
    TR=:B1 ) AND C.F_CLASS_ID_TO =22) ) SELECT MIN(P.FID_ATTR) AS FI
    D_FROM FROM CONNECTION C, WW_POINT P WHERE (P.FID = C.FID_FROM A
    ND C.F_CLASS_ID_FROM = 32 AND C.FLOW = 1) OR (P.FID = C.FID_TO A
    ND C.F_CLASS_ID_TO = 32 AND C.FLOW = 2)
    I have a different tool which shows me the binding parameter values. So I know that the value for :B1 is 5011 - the id of the feature being updated. This query runs for 20 mins and longer before it eventually stops. The update process involves multiple sql statements - so this one is not doing the update but is part of the process.
    Here is the bit I do not understand: when I run the query in SQL Developer with value 5011 for :B1 it takes 0.5 secs to return a result.
    Why is it, that the sql statement takes so long when issued by the application but takes less than a second when I run it manually?
    I sent a dump of the data to the application vendor who is not able to reproduce the issue in their environment. Could someone explain to me what happens here or give me some keywords for further research?
    We are using 11gR2, 64bit.
    Many thanks,
    Rob

    Hi Rob,
    at least you should see some differences in the statistics for the different child cursor (the one for the execution in the application should show at least a higher value for ELAPSED_TIME). I would use something like the following query to check the information for the child cursors:
    select sql_id
         , PLAN_HASH_VALUE
         , CHILD_NUMBER
         , EXECUTIONS
         , ELAPSED_TIME
         , USER_IO_WAIT_TIME
         , CONCURRENCY_WAIT_TIME
         , DISK_READS
         , BUFFER_GETS
         , ROWS_PROCESSED
      from v$sql
    where sql_id = your_sql_idRegards
    Martin

  • Extremely slow WiFi on Macbook, but fast on Windows, any suggestions?

    I recently posted a topic that the WiFi on my MacBook didn't work at all. I overcame this problem by purchasing a new router. It now works, but as the topic title suggests, it is very slow. The router I purchased was a Netgear WGR614v9, which works brilliantly with my Windows laptop running Vista.
    Could this me a faulty AirPort card? or do I need specific settings enabled on my router? I would be very grateful if you helped.
    Many thanks.

    Try setting the router to broadcast the wireless signal in G only rather than mixed mode which seems to be the default settings.
    This finally fixed my wireless issue after reading another thread here. I hope this helps.

  • Download speed slow on Mac Pro but fast on MacBook Pro

    I have an early 2008 8-core Mac pro, 6 GB RAM, running 10.6.8. I'm connected via ethernet to the HITRON CGN3 modem/WiFi router from Rogers. I'm only getting about 20Mbps download, and 10 Mbps upload. However, when I connect my 13" 2011 MacBook Pro (8 GB RAM) to the modem, also running 10.6.8 and using ethernet into the same port, I get about 80Mbps download and 10 Mbps upload. Even using WiFi, my MacBook Pro is able to get about 80Mbps download.
    My network settings are the same in both my Mac Pro and my MacBook Pro. I should be getting around 60-80Mbps download on my internet plan, but my Mac Pro is underperforming.
    Anyone know the solution, or have experienced a similar issue?
    Thanks in advance.

    Grant, you sir are a mega genius.
    The culprit was the ethernet cable. I plugged the cable I was using for the Mac Pro into my MacBook and experienced a drop in download speed. Upon inspection, the cable had 6 wires. Who knew? This cable worked with my previous modem, and my speeds were pretty good. I just upgraded my internet package, and got this new modem, so I guess the cable is no longer incompatible.
    Now that I've replaced the ethernet cable to my Mac Pro, my download speeds are smokin'.
    Thanks, man, you saved the day!

  • Oracle ODBC as user works but fails as 'SYS'

    Windows 7
    Oracle XE 11gR2
    From Windows, I can successfully create and connect with a system data source using an user Oracle account.
    But when doing then same configuration process I can not create or connect using the 'SYS' account.
    Understandably, I get the error 'ORA-2009: connection as SYS should be as SYSDBA or SYSOPER'.
    What is the solution to creating an ODBC DSN for the user 'SYS'?
    Thanks

    I am writing an automated installation script that requres DBA access in order to create user accounts (schemas), tablespaces, etc. I need to log into Oracle as 'SYS' and the application uses ODBC to connect to the database.

  • SLOW MDX Query in an Environment but Fast in another

    A query runs slow in one environment but fast another : here's what I looked for so far without any luck.
    It takes 2 seconds to execute the query below in QA vs 20 seconds in prod.
    QA cube size is 430.81 MB - 474.54 MB on PROD
    Cubes match in environments
    Compared QA and PROD properties and they match (database and server Analysis services)
    Restarted services on both machines
    Looking at SQL server provider seems that the query has no significant effect on the CPU
    Seems there's a spike in pages/sec when the MDX query runs – the VM size is slightly > in PROD than in QA this shouldn’t affect it .Looked at the Storage Engine queries ,MDX counters and Nothing stands out
    here's the query
    SELECT NON EMPTY
    CrossJoin(CrossJoin(Hierarchize(AddCalculatedMembers({DrilldownLevel({[Sector].[Sector].[All]})})),
    Hierarchize(AddCalculatedMembers({DrilldownLevel({[Security].[Sec Type].[All]})}))),
    Hierarchize(AddCalculatedMembers({DrilldownLevel({[Broker].[Broker].[All]})})))
    DIMENSION PROPERTIES PARENT_UNIQUE_NAME,[Sector].[Sector].[Sector],[Broker].[Broker].[Broker],[Broker].[Broker].[Company Code]
    ON COLUMNS
    FROM [TradeAndCommission]
    WHERE ([Measures].[Broker Par Pct]) CELL PROPERTIES VALUE, FORMAT_STRING, LANGUAGE, BACK_COLOR, FORE_COLOR, FONT_FLAGS
    eddy.a

    Hi Eddy,
    Thank you for your question. 
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated. 
    Thank you for your understanding and support.
    Regards,
    Charlie Liao
    TechNet Community Support

  • How to use the same POWL query for multiple users

    Hello,
    I have defined a POWL query which executes properly. But if I map the same POWL query to 2 portal users and the 2 portal users try to access the same page simultaneously then it gives an error message to one of the users that
    "Query 'ABC' is already open in another session."
    where 'ABC' is the query name.
    Can you please tell me how to use the same POWL query for multiple users ?
    A fast reply would be highly appreciated.
    Thanks and Regards,
    Sandhya

    Batch processing usually involves using actions you have recorded.  In Action you can insert Path that can be used during processing documents.  Path have some size so you may want to only process document that have the same size.  Look in the Actions Palette fly-out menu for insert path.  It inserts|records the current document work path into the action being worked on and when the action is played it inserts the path into the document as the current work path..

  • When using the camera downloader in Adobe Bridge CS6 with Nikon D5200 we are unable to see previews of the photos and it is very slow to download. The issue occurs under a the users rights, but not under admin level. This is a new issue

    When using the camera downloader in Adobe Bridge CS6 with Nikon D5200 we are unable to see previews of the photos and it is very slow to download. The issue occurs under a the users rights, but not under admin level. This is a new issue.

    Hi Jdentremont,
    Lync client gets user photos by first querying the Address Book Web Query (ABWQ) service on the server, which is exposed through the Distribution List Expansion web service. The client receives
    the image file and then copies it to the user's cache to avoid downloading the image each time it needs to be displayed. The attribute values returned from the query are also stored in the cached Address Book Service entry for the user. The Address Book Service
    deletes all cached images every 24 hours, which means that it can take up to 24 hours for new user images to be updated in the cache on the server.
    To troubleshoot your problem, please follow the steps below:
    1.  Navigate to
     “X:\share\1-WebServices-1\ABfiles\000000000\000000000” folder. (ABS file share)
    You should see some photo files in this folder as the following screenshot.
    2. Delete all the files in this folder.
    3. On test PC, delete local cache files.
    %userprofile%\AppData\Local\Microsoft\Office\15.0\Lync\[email protected]
    4. Sign-in Lync with the test account.
    5. Go back to the ABS file share, check if there is any Photo file in the folder.
    Best regards,
    Eric
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Which user/schema executed query in V$SQLAREA

    I am looking on one row/query in view "V$SQLAREA" and want to which user/schema was used to log in to the database when that one query was executed. How i can get that schema name?
    Should i look this column maybe:
    V$SQLAREA
    PARSING_SCHEMA_NAME             VARCHAR2(30)      Schema name that was used to parse this child cursor( http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_2129.htm )
    I have Java software that uses different database schemas/users to make connections to my database. And i want to know for one query which schema/user was used to connect to database before running the query.
    I think i need to join "V$SQLAREA" to view V$SESSION and there the column "USERNAME" tells me the connection user name for the executed query.
    V$SESSION
    USERNAME      VARCHAR2(30)      Oracle username
    ( http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_2088.htm )Seems like i fail to join "V$SQLAREA" to view V$SESSION:
    select q.SQL_TEXT, q.sql_id, q.PARSING_SCHEMA_NAME, q.ADDRESS, q.last_active_time, s.USERNAME, s.SCHEMANAME from v$sqlarea q, v$session s
    where q.last_active_time > sysdate - 1
    and q.sql_text like 'DELETE FROM casino.lgngameoperationlog WHERE sessionCode%'
    and s.sql_address=q.address
    order by last_active_time desc
    no rows found
    select q.SQL_TEXT, q.sql_id, q.PARSING_SCHEMA_NAME, q.ADDRESS, q.last_active_time from v$sqlarea q
    where q.last_active_time > sysdate - 1
    and q.sql_text like 'DELETE FROM casino.lgngameoperationlog WHERE sessionCode%'
    order by last_active_time desc
    'DELETE FROM casino.lgngameoperationlog WHERE sessionCode = :1 and sessionType = :2';     51thfgbubkkg6;     JAVA;     0000000392523658;     28.10.2010 18:09:14;
    */

    I have Java software that uses different database schemas/users to make connections to my database. And i want to know for one query which schema/user was used to connect to database before running the query.If the SQL-text sits inside your Java code, that is the text does not sit inside some stored pl/sql program unit, then you can use parsing_schema_id, yes.
    If the SQL-text sits inside a stored procedure, then depending on how that procedure is defined (invoker rights or definer rights), you could use parsing_schema_id too (in the first case (invoker rights)).

  • MDX Query much slower for users without administrativ rights

    We have a SQL 2012 SP1 with CU9 installed and run a MDX query against a Cube. The Problem is that the query runs very slow for a user without administrativ persmission on the cube. With admin rights it takes 3 seconds and without 30 seconds. I can't find
    any error in the query so maybe someone can pin point me in the right direction.The Role has all reading information it needs.
    This is the Query:
    SELECT NON EMPTY { [Measures].[Blocked Consignment], [Measures].[Consignment in Inspection],
    [Measures].[Restricted Consignment], [Measures].[Unrestricted Consignment] } ON COLUMNS, NON EMPTY
    { ([Date].[Date].[Date].ALLMEMBERS * [Materials].[Part Number].[Part Number].ALLMEMBERS *
    [Materials].[Key].[Key].ALLMEMBERS * [Sold To].[Name].[Name].ALLMEMBERS *
    [Stock Information].[Plant - Storage Location].[Storage Location].ALLMEMBERS * [Non Zero].[Zero Stock Status].[Zero Stock Status].ALLMEMBERS ) }
    ON ROWS
    FROM ( SELECT ( STRTOSET("[Non Zero].[Zero Stock Status].&[No]", CONSTRAINED) )
    ON COLUMNS FROM ( SELECT ( STRTOSET("[Stock Information].[Storage Location].&[1090]", CONSTRAINED) )
    ON COLUMNS FROM ( SELECT ( STRTOSET("[Stock Information].[Plant].&[1090]", CONSTRAINED) )
    ON COLUMNS FROM ( SELECT ( STRTOSET("[Sold To].[Name].[All]", CONSTRAINED) )
    ON COLUMNS FROM [Stock Snapshot]))))
    WHERE ( IIF( STRTOSET("[Stock Information].[Plant].&[1090]", CONSTRAINED).Count = 1, STRTOSET("[Stock Information].[Plant].&[1090]", CONSTRAINED), [Stock Information].[Plant].currentmember ),
    IIF( STRTOSET("[Stock Information].[Storage Location].&[1090]", CONSTRAINED).Count = 1, STRTOSET("[Stock Information].[Storage Location].&[1090]", CONSTRAINED), [Stock Information].[Storage Location].currentmember ) )
    Any one came across this is or is it a bug?

    Can you check which build of SSAS you've got installed? It looks similar to this bug:
    http://support.microsoft.com/kb/2905298/en-us
    Apart from that, if you have used cell security in your role, it would be expected that query performance would be slower for users of that role.
    Chris
    Check out my MS BI blog I also do
    SSAS, PowerPivot, MDX and DAX consultancy
    and run public SQL Server and BI training courses in the UK

  • How to restrict the user(Schema) from deleting the data from a table

    Hi All,
    I have scenario here.
    I want to know how to restrict a user(Schema) from deleting the values from a table created in the same schema.
    Below is the example.
    I have created a table employee in abc schema which has two values.
    EMPLOYEE
    ABC
    XYZ
    In the above scenario the abc user can only fire select query on the EMPLOYEE table.
    SELECT * FROM EMPLOYEE;
    He should not be able to use any other DML commands on that table.
    If he uses then Insufficient privileges error should be thrown.
    Can anyone please help me out on this.

    Hi,
    kumar0828 wrote:
    Hi Frank,
    Thanks for the reply.
    Can you please elaborate on how to add policies for a table for just firing a select DML statement on table.See the SQL Packages and Types manual first. It has examples. You can also search the web for examples. This is sometimes called "Virtual Private Database" or VPD.
    If you have problems, post a specific question here. Include CREATE TABLE and INSERT statements to create a table as it exists before the policies go into effect, the PL/SQL code to create the policies, and additonal DML statements that will be affected by the policies. Show what the table should contain after each of those DML statements.
    Always say which version of Oracle you're using. Confirm that you have Enterprise Edition.
    See the forum FAQ {message:id=9360002}
    The basic idea behind row-level security is that it generates a string that is automatically added to SELECT and/or DML statement WHERE clauses. For example, if user ABC is only allowed to query a table on Sunday, then you might write a function that returns the string
    USER  != 'ABC'
    OR      TO_CHAR (SYSDATE, 'DY', 'NLS_DATE_LANGUAGE=ENGLISH') = 'SUN'So whenever any user says
    SELECT  *
    FROM    table_x
    ;what actually runs is:
    SELECT  *
    FROM    table_x
    WHERE   USER  != 'ABC'
    OR      TO_CHAR (SYSDATE, 'DY', 'NLS_DATE_LANGUAGE=ENGLISH') = 'SUN'
    ;If you want to prevent any user from deleting rows, then the policy function can return just this string
    0 = 1Then, if somone says
    DELETE  employee
    ;what actually gets run is
    DELETE  employee
    WHERE   0 = 1
    ;No error will be raised, but no rows will be deleted.
    Once again, it would be simpler, more efficient, more robust and easier to maintain if you just created the table in a different schema, and not give DELETE privileges.
    Edited by: Frank Kulash on Nov 2, 2012 10:26 AM
    I just saw the previous response, which makes some additional good points (e.g., a user can always TRUNCATE his own tables). ALso, if user ABC applies a security policy to the table, then user ABC can also remove the policy, so if you really want to prevent user ABC from deleting rows, no matter how hard the user tries, then you need to create the policies in a different schema. If you're creating things in a different schema, then you might as well create the table in a different schema.

  • View with two users schema

    hello,
    i try to create view from 2 users schema , but i get :
    SQL Command: CREATE OR REPLACE FORCE
    Failed: Warning: הביצוע הושלם עם אזהרה
    if i run the select statement without the first line ( create or replace... ) i see the data i ask for...
    how i define the first line to create the view from two users schema ?
    here is my query :
    CREATE OR REPLACE FORCE VIEW "DBPROJECT"."CI_BE_LIST" ("BE_ID", "BE_NAME", "BE_TYPE_ID", "BE_TYPE_NAME", "FE_ID", "FE_NAME", "FE_TYPE_ID", "FE_TYPE_NAME", "MCPT_ADDRESS", "MCPT_ADDRESS_TEXT", "PLC_ADDRESS", "PLC_ADDRESS_TEXT", "OPC_ITEM", "BE_GROUP_ID") AS
    SELECT B.BE_ID AS BE_ID,
    NB.TEXT AS BE_NAME,
    B.BE_TYPE_ID AS BE_TYPE_ID,
    BT.NAME AS BE_TYPE_NAME,
    F.FE_ID AS FE_ID,
    NF.TEXT AS FE_NAME,
    F.FE_TYPE_ID AS FE_TYPE_ID,
    FT.FE_TYPE_NAME AS FE_TYPE_NAME,
    NVL( (SELECT BC.CHARACTERISTIC_TYPE_ID
    FROM BE_CHARS BC
    WHERE BC.BE_ID = B.BE_ID AND
    BC.CHARACTERISTIC_TYPE_ID = 113) , 0 ) MCPT_ADDRESS,
    (SELECT S.TEXT
    FROM BE_CHARS BC
    LEFT JOIN STRINGS S ON S.STRING_ID = BC.CHARACTERISTIC_VALUE
    WHERE BC.BE_ID = B.BE_ID AND
    BC.CHARACTERISTIC_TYPE_ID = 113) MCPT_ADDRESS_TEXT,
    NVL( (SELECT BC.CHARACTERISTIC_TYPE_ID
    FROM BE_CHARS BC
    WHERE BC.BE_ID = B.BE_ID AND
    BC.CHARACTERISTIC_TYPE_ID = 93) , 0 ) PLC_ADDRESS,
    (SELECT S.TEXT
    FROM BE_CHARS BC
    LEFT JOIN STRINGS S ON S.STRING_ID = BC.CHARACTERISTIC_VALUE
    WHERE BC.BE_ID = B.BE_ID AND
    BC.CHARACTERISTIC_TYPE_ID = 93) PLC_ADDRESS_TEXT,
    (SELECT S.TEXT
    FROM BE_CHARS BC
    LEFT JOIN STRINGS S ON S.STRING_ID = BC.CHARACTERISTIC_VALUE
    WHERE BC.BE_ID = B.BE_ID AND
    BC.CHARACTERISTIC_TYPE_ID = 105) OPC_ITEM,
    BT.GROUP_ID AS BE_GROUP_ID
    FROM BE B
    INNER JOIN FE F ON F.FE_ID = B.FE_ID
    INNER JOIN "DBCONSTANTS".BE_TYPES BT ON BT.ID = B.BE_TYPE_ID
    INNER JOIN "DBCONSTANTS".FE_TYPES FT ON FT.FE_TYPE_ID = F.FE_TYPE_ID
    LEFT JOIN NAMES NB ON NB.NAME_ID = B.BE_NAME_ID
    LEFT JOIN NAMES NF ON NF.NAME_ID = F.FE_DISPLAY_NAME_ID
    ORDER BY BE_ID;
    thank u,
    adi damty

    Hi, Adi,
    Welcome to the forum!
    As you may have noticed, this site compresses whitespace. Whenever you post formatted text on this site, type these 6 characters:
    \(all small letters, inside curly brackets) before and after each section of formatted text.
    To create a view involving tables from other schemas, you need to have SELECT privileges on those tables granted directly to you; privileges granted through roles aren't good enough to create a view, even though they are good enough for you to run the exact same query.
    Make sure the view owner (or PUBLIC), and not merely some role given to the view owner, has privileges on all the tables.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • Can u tranfer money from one account to another on the itunes

    We had received gift cards for itunes and were told we needed a separate acct but the kids cannot purchase games on ipodusing the new account that we were told we needed to set up.

  • By default all nodes expanded  in tree table in jsff page in adf

    Hi All, I have a jsff page there is a table tree on it.I want it to be expanded on page load(or default behavior). How will I achieve it. This is to be noted that this jsff page so I can not use before phase or after phase. There is a property in tre

  • "What kind of file is this?" message

    When I try to open GB projects (created in GB3 and stored on a hard disk) now in GB 08 I get the message "RecordingXXX. What kind of file is this?" and the only option I have is "Abort." Then I get a message that some of the regions are 8-bit. When t

  • Solution manger error

    Dear All, I installed solution manager when i log on with sap* user in 000 client I am getting this error can any body help me Error analysis                               In a statement an invalid request was made to the database interface          

  • Error and then Itunes shuts down

    When ever I download a video to my new ipod it makes it almost to the end then I recieve an error message. Something about itunes has encountered an error and must shut down do you want to send a report ...... How can I fix this! apple doesn't seem t