XMLDB – Nodes to Rows
I have an application that stores XML as XMLType in a table. This is the first time I’m using XMLDB and XMLType features, and was wondering if I could use the results from an XQuery FLWOR expression in...
View Articleusing update query with subquery in Oracle sql
I have an update query where I am trying to update a field but for more than one record, I am trying a join but it doesn’t work. Below I get multiple values that come back from the select statement but...
View ArticleMySQL created_by or updated_last-by [closed]
I’ve been giving the task of taking SQL DDL from data modeler and to transcribe it into mySQL for an internship. The only thing I cannot figure out is how to take Created_By VARCHAR2(30) DEFAULT USER,...
View ArticleOracle performance loss from 10.1.0.2 to 10.2.0.5
I am testing an application on two database servers with the same data : 10.1.0.2 on Windows (for development) 10.2.0.5 on Solaris (for validation). We have a script which recreates a huge table (>...
View Articleora-12705 cannot access NLS data files or invalid environment specified
I have i’m installing oracle in machine 12c, while installing everything goes smoothly but when it reach to database creation it passes two step. cleaning up failed stat copying database file creating...
View ArticleOracle remote OS authentication, security risks with domain users
What security risks can be with domain users? create user "OPS$KAUSERNAME" identified externally. grant create session to "OPS$KAMARIK"; Then MARIK that is in KA domain, can logon to the database...
View ArticleRun stored procedures from specific package/with specific tag at lower priority
I have this requirement to run “Maintainance Jobs” for a web application. These jobs will just call a stored procedure from a set of specific packages. Running these jobs can consume quite a bit of CPU...
View ArticleDBMS_CRYPTO – ORA-06521 PL/SQL: Error mapping function
PACKAGE: user/password — SYSTEM/SYSTEM CREATE OR REPLACE PACKAGE enc_dec AS FUNCTION encrypt (p_plainText VARCHAR2) RETURN RAW DETERMINISTIC; FUNCTION decrypt (p_encryptedText RAW) RETURN VARCHAR2...
View ArticleHow to replace empty, multi-column result with single 'none'
If it is possible to make query in Oracle which will return single column/row with value “none” instead of empty, multi-column result? Otherwise return proper amount of columns with result. This is...
View ArticleHow to replace empty, multi-column result with single 'none'
If it is possible to make query in Oracle which will return single column/row with value “none” instead of empty, multi-column result? Otherwise return proper amount of columns with result. This is...
View ArticleCalling a procedure from drupal
I have a procedure structure like this in an Oracle database: procedure overlapping_course ( v_id number, v_program varchar2, v_message_type varchar2, v_user_type varchar2, v_language varchar2,...
View ArticleHow to make sqlplus output appear in one line when running using shell script?
For example i have an output as below : exec dbms_stats.gather_table_stats(ownname =>’ABC’,tabname=>’XYZ’, no_invalidate=> FALSE, estimate_percent =>...
View ArticleOracle: summing column value with subquery?
Are there some restrictions in Oracle that disallows to have a WHERE clause that compares value of column+(subquery count(*))? If the subquery table is empty, count(*) doesn’t yield to zero in this...
View ArticleIs it possible to add an ArcGIS attachment to a row in Oracle/SDE using...
So far I have been able to attach files to features within a featureclass using the python tools and ArcObjects. Within Oracle I have been able to add features with geometries using the ST_Geometry...
View ArticleORA-00942 when trying to select from gv$session inside of procedure
I have been tasked with allowing developers to kill their own sessions in the Development database. I’ve written a procedure, but for some reason I’m getting PL/SQL: ORA-00942: table or view does not...
View ArticleHow to retire a physical standby in Oracle 11.2
I have a production Oracle 11gR2 RAC database with a single node physical standby. Now it has become the time to retire the old standby and pass that role to a RAC on fresher hardware. We don’t use...
View ArticleCan we take Backup on Disk and Tape at same time by RMAN?
I’m trying to take backup by RMAN. I want to know can we take backup of database on disk and tape at same time by using RMAN? If yes then please share some documentation Or if no then please give the...
View ArticleReordering Tables in ArcMap Layer List?
I’m trying to reorder the TABLES in my ArcMap layer list. I can’t find a way to do it. I can reorder normal layers since they appear in the “List by Drawing Order” tab of the “Table of Contents”. The...
View ArticleMigrate MS Access Data into Oracle DB
I was sent some old MS Access files that contained survey data and served as a “file geodatabase”. I want to import these to my Oracle Database with it maintaining “geometric” sense and meaning. I am...
View ArticleTable To Table on Oracle table to File Geodatabase fails?
I recently upgraded to 10.2.2 and have found that some python scripts I used with table to table command no longer work. I am copying tables from an Oracle database to a file based geodatabase. This...
View Article