Find database object escape underscore

How to escape underscore in find database object pattern search?

SQL Developer blindly copies the search pattern into the like condition. Therefore, as you correctly observed it inherits the artifact of underscore being single character search pattern.
I always use the superior % wildcard pattern, and suspect that 99% of the users do the same. So the question to ask is why the puny underscore pattern even exists, making it harder to specify legitimate underscore character. I'm tempted to add unconditional ESCAPE '\' to the query where clause, and convert any underscore into '\_'; so please raise your objection or any other comment here.

Similar Messages

  • Find Database Object gives error message in 3.2.20.09.87

    Since updating to SQL Developer 3.2.20.09.87 I've been getting error messages when running Find Database Object. The message on the logging page is: ORA-00942: table or view does not exist
    Followed by:
    select null name, -1 LINE, -1 COL, null USAGE,
    case when obj.object_type like 'JAVA%' then 'JAVA' else obj.object_type end TYPE,
    OWNER, case when obj.object_type like 'JAVA%' then 'JAVA' else obj.object_type end OBJECT_TYPE,
    obj.OBJECT_NAME
    from sys.dba_objects obj where rownum <= 500 and obj.object_type != 'TABLE PARTITION' and obj.object_type != 'TABLE SUBPARTITION' and obj.object_type != 'JAVA CLASS' and object_name like ?
    union all
    select null name, -1 LINE, -1 COL, null USAGE,
    'MATERIALIZED VIEW LOG' TYPE, log_owner OWNER,
    'MATERIALIZED VIEW LOG' OBJECT_TYPE, master OBJECT_NAME
    from all_snapshot_logs where master like ?
    union
    select null name, -1 LINE, -1 COL, null USAGE,
    'DATABASE LINK' TYPE, owner OWNER,
    'DATABASE LINK' OBJECT_TYPE, db_link OBJECT_NAME
    from all_db_links where rownum <= 500 and db_link like ?
    union all
    select c.column_name name, -1 LINE, -1 COL, null USAGE, o.object_type TYPE, c.OWNER, o.object_type OBJECT_TYPE, c.table_NAME OBJECT_NAME
    from sys.all_tab_columns c, all_objects o
    where c.table_name=o.object_name and c.owner = o.owner and rownum <= 500 and c.column_name like ?
    union all
    select name, LINE, COL, USAGE, TYPE, OWNER, OBJECT_TYPE, OBJECT_NAME
    from sys.all_identifiers where rownum <= 500 and name like ?
    My database version is: 10.2.0.4.0
    I'm grateful that SQL Developer peacefully coexists with earlier versions.
    Anything I can do?
    Thanks.

    Hi,
    I cannot seem to find a bug or forum reference for this issue at the moment, but I recall there was some problem on 10g connections where SQL Developer thinks you have DBA view privileges even when you don't. So, on 11g, a user with very basic privileges can do a Find DB Object without seeing the error you got on 10.2.0.4. On 10.2.0.x you should be able to workaround the problem if you can arrange to get grant select_catalog_role for that userid.
    Regards,
    Gary

  • Find destination of database objects..

    I've got all database schema in one Oracle dmp file. I know that schema from this file was stored on 2 servers, but when I import this file I have all tables, procedures and other database object in one user. Is there any possibilities to know in which server was which tables and procedures? I try to use SQLDeveloper to find on which tablespace works procedures and functions, but I can't find tablespace's path in OS :/ Or maybe better idea is to find this information not on imprted schema, but on dmp file?!
    I add that this schema is too huge to search my answer step by step, because it has about 1300 tables :/
    Please help.

    Please clarify your previous message and intentions.
    I've got all database schema in one Oracle dmp file.Export was done in full mode, you mean?I hope yes. It's old dmp file and I've got only short description about this dmp file.
    >
    I know that schema from this file was stored on 2 servers,I have no idea what this means... How was the export
    done?It's mean that in this file are database object from both server. One server was for transformating data and second for reporting and diagnostig. Both of them have database objects and I try to know which of them was on which server.
    >
    but when I import this file I have all
    tables, procedures and other database object in oneuser.
    So, how was this import done? E.g. what imp command
    line options did you use?
    I use full imprt option.
    Is there any possibilities to know in which
    server was which tables and procedures?Not sure what you want. Perhaps you could ask the one
    who did the export?
    I I explain this above in this post.
    I try to use
    SQLDeveloper to find on which tablespace works
    procedures and functions, but I can't findProcedures and functions are schema objects, and uses
    [url=http://download.oracle.com/docs/cd/B19306_01/serv
    er.102/b14220/physical.htm#i15436]the SYSTEM
    tablespace for storage.
    tablespace's path in OS :/ Or maybe better idea isto
    find this information not on imprted schema, buton
    dmp file?!What kind of information?
    Information about which database objects on dmp file was stored on which server..
    >
    Is my answer are clearer now? If yes, please suggest solution.

  • Find long running database objects over week (without using V$ views)

    find long running database objects over week (without using V$ views) as v$ views contains information only upto objects resides on main memory . I want to know the objects which takes highest time withing one week.

    Hello,
    welcome to the forum.
    This is the forum for the tool {forum:id=260}. Your question about v$views should be posted in {forum:id=61} or {forum:id=75}. There is a FAQ {message:id=9360002}: especially the part about providing essential informations like 4 digit version number :-)
    Regards
    Marcus

  • SE14 - mass check for Database objects

    Dear Gurus
    We have a lot of tables, that have error/problems in check DB14->Check->Database object
    How can I find all problematic tables in single report?
    Regards
    Vladimir

    you can use report RUTDBCHK. It does the se14 functionality. Maybe debugg some and you will find the corresponding FM related, which would in turn return an error / information about the status

  • How to open a database object for view/edit using a command (v. 3.2.20.09)

    How can I open a database object for view or edit using a command in Oracle SQL Deveveloper?
    I find browsing or search for object in a large database to be slow and too cumbersome.

    Shift-F4 (pop-up descrribe) on a table name in the worksheet will let you view table details, but there is no quick edit.
    You can use filters on the object browser to reduce the number of visible objects.

  • How to install Oracle Database objects for BPA repository?

    Hello,
    I have installed Oracle database (10.2.0.1) EE.
    I have run the following command to install BPA repository and site manager.
    ./install_bpr10.1.3.4.271679.sh -bpr_type BS_SM -jvm ./bpa10.1.3.4/jdk1.5.0/ -dbserver rstnxlin011.oracle.com -dbport 1521 -dbinstance pva011
    Where are the database object creation scripts? I am sure I still have to create ARIS objects in the database.
    Mustafa

    Within my installation i could find the scripts on Disk 2 (where the windows installation of the Repository resides) in the folder DBMS/Oracle.

  • Database objects portlet

    i want the database object tab to appear with some modification like i dont want the find option and the create option. where is the portlet stored and how can it be modified? any ideas....

    according to me , the codes of those portlets r being wrapped so i think its difficult to customize as u wish. even i hav been trying to customize the existing portlets like search..
    do u hav any idea abt that..

  • DATABASE OBJECTS PORTLET OF PORTAL

    I have posted this question earlier and i have not received an answer for it. so i am posting this question again.
    i want to customize the database objects portlet say like i want to remove the find option. how can this be done?

    It is not possible. The navigator portlets are pre-designed and built into portal with the find utility. It is ofcourse possible to customize the portal-provided navigator page but not to this level of removing the find options itself.

  • Fully qualified database object names

    Is there a method to determine the fully qualified name of a database object such as a table or procedure? At the moment I compute this from the catalog and schema identifiers but I am hoping there is a more direct way.
    Thanks,
    KP

    give an example for what u r looking for.
    which DB ?For example, a Sybase table named "table1" in a schema "dbo" in database "db1" has a fully qualified name of "db1.dbo.table1". I am trying to find a way to do this in a database-independent way. It's not as simple as concatenating the 3 elements together because you have to take into consideration the fact that the database may not use schemas or databases or both etc. I am hoping there is a method or a series of methods that return this information.
    KP

  • Traitement modules versus database object in Designer 9i

    Hello!
    In our environment, there was Designer 9i installed with non-enabled versioning. So, there is only one Global shared workarea, and all the applications system are granted to public who has all rights, and the developers maintain all the application (database objects and modules).
    Now, we want to revoke the insert, delete and update privileges on database object to the developers.
    The developers continue to maintain their modules and only the DBA, would be able to modify the database objects.
    What is the best way to do it?
    Thanks,
    Malika

    Malika,
    Then you should move the database objects to another workarea and grant only edit priviliges to your DBA - and these objects should be shared to your 'normal' development workarea (where the developers have all privs).
    But why the h*** should you want to do this? Packages, procedures and functions are database objects and should be developed by developers. Imho also views, tables, triggers etc should be developed by developers and not DBA's. A DBA is another kind of expertise than developer. If you try to make the developer's life (work) difficult, they will look for workarounds - and find them. And so making your project less productive and more complex.
    Keep the problem you are trying to solve in mind!
    HTH
    Roel

  • Move Data from Converted Database Objects Successfully Finish ?

    I am using SQL Developer 3.2.20.09 try to migrate KSMMS database from SQL Server 2008 to Oracle 11g R2. After the migration process is done, the Captured Database Objects model, and Converted Database Objects model have been created in the Migration Projects Navigator panel on the left side, and the corresponding sql scripts has been generated in the project output directory. I run the sql scripts, it created all the tables, views, index and stored procedures in the oracle database, everything seems working perfectly. However when I try to Move Data (by right clicking Converted Database Objects) and try to move all the data from SQL Server to Oracle database, the Data moving process run less then 1 minute, and show me the result as Data Move successfully. I have about 1 GB data in the SQL Server database, it seems nothing has been moved into Oracle DB. Here are the detail structures of MS SQL Server Database which I am trying to migrate to Oracle:
    The SQL Server Database name is KSMMS, under that database there are 9 users (azteca, cwweb, dbo, guest, plladmin, pw, pwadmin, tbills, wsdadmin). All my application objects (tables, views, indexes, procedures) are under azteca user, during the migration process, Converted Database Objects creates user azteca_KSMMS and dob_KSMMS, all my application objects have been created under azteca_KSMMS user schema. The generated .sql scripts actually can create all the objects under azteca_KSMMS schema, however when I try to Move Data, nothing has been moved into Oracle database. I opened an SR#3-6708733861 last Friday, it seems Oracle Support can't find what cause the problem during the Data Move process. Any help regarding my questions will be highly appreciated. Thanks.
    Kevin

    I changed Data Move Mode to Online and run the Data Move again. Same Results: Migration action have completed successfully. However no records have been moved into Oracle tables.
    I am running SQL Developer under Windows 8 Operation system. There is no Oracle client software available for Windows 8, does that cause any problems?
    Kevin

  • Tool to report on database objects used in JDeveloper

    Folks,
    Does anyone know of a simple tool or plugin that can be used in JDeveloper to spit out what database objects are in use within a JDeveloper business component project?
    For example, if I'm using emp, dept etc from the scott database schema as business objects, is there a tool that can be used to analyse the JDev BC project and generate something like a pdf that lists these tables?
    I know there are more enterprise options available but I just need a quick and simple tool that will analyse my business components project and tell me the database tables that are in use in that project.
    Thanks in advance,
    Phil.

    AFAIK there isn't such a diagram or tool available. The framework doesn't store this information in n a central repository but in multiple meta data files (xml files). You can searchthrough them to find the info you like to get. Problem might be that some of the business componentes e.g. VO are not build one DB object alone but on multiple of them (union, joins...). To get the DB objects from such a VO you have to analyse the query.
    Timo

  • How to find sql objects in folder having Ansi_Nulls OFF?

    I have a folder having thousands of stored procedures and functions. Some of those procs and functions havent been deployed to database.
    Is there any way i can find all objects in that folder having ansi nulls off? 

    Check http://helpdeskgeek.com/how-to/search-inside-multiple-text-files-at-once/
    If you have Visual Studio installed, check
    http://msdn.microsoft.com/en-us/library/aa264360(v=vs.60).aspx
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • PowerShell - what is the most efficient/fastest way to find an object in an arraylist

    Hi
    I Work with a lot of array lists in PowerShell when working as a sharepoint administrator. I first used arrays but found them slow and jumped over to array lists.
    Often i want to find a specific object in the array list, but the respons-time varies a lot. Does anyone have code for doing this the most efficient way?
    Hope for some answers:-)
    brgs
    Bjorn

    Often i want to find a specific object in the array list, but the respons-time varies a lot. Does anyone have code for doing this the most efficient way?
    As you decided to use an ArrayList, you must keep your collection sorted, and then use the method BinarySearch() to find the objects your looking for.
    Consider using a dictionary, and if your objects are string type, then a StringDictionary.
    You stil fail to understand that he slowness is no in the arraylist.  It is in the creating of the arraylist which is completely unnecessary.  Set up a SharePoint servefr and create a very large list and test..  You will see. An arraylist
    with 10000 items takes forever to create. A simple SharePoint search can be done in a few milliseconds.
    Once created the lookup in any collection is dependent on the structure of the key and the type of collection.  A string key can be slow if it is a long key.
    The same rules apply to general database searches against an index.
    The main point here is that SharePoint IS a database and searching it as a database is the fastesst method.
    Prove me wrong devil!    Submit!  Back to your cage! Fie on thee!
    ¯\_(ツ)_/¯
    You seem to be making a lot of assumptions about what he's doing with those arraylists that doesn't seem justified based on no more information than there is in the posted question.
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

Maybe you are looking for