As far as I know in Microsoft SQL Server it is possible to use CURSOR to "scan" database and get all tables/entries where specified string is mentioned. Can I do this in Oracle 11g DB? Any caveats/limits for such scenario?
Using CURSOR in Oracle 11g database to locate all matches for specifed string in DB
cursorsoracle-11g
Related Question
- How to make a particular field into seperate columns
- Windows – Oracle 11g: LRM-00109 followed by ORA-01078 when using PFILE created by SPFILE
- Oracle Pivot Table – Creating Nested Inline Pivot Tables
- Oracle 11g – Global Command to Destroy All Disconnected Data Files
- Oracle 11g hierarchical queries with limit, offset and order by to achieve pagination on the root level
- Mysql – Additional Select statement within Cursor terminates looping unless Select statement returns a results for all cursor rows
- Error ORA-12505 when connecting to Database Oracle 11g SQL Developer
Best Answer
I'm hard-pressed to imagine how you'd accomplish that with a single cursor in SQL Server.
The same question has been asked and answered on StackOverflow. If you want to get really tricky, you could also use an XML Query to search across objects with a single query.
In either case, the result is going to be insanely slow since you're full scanning every table at least if not once per character column.