oracle10g

How to delete trigger in oracle that contain special character?

做~自己de王妃 提交于 2020-01-05 05:44:09
问题 I don't know why in the database there are 2 triggers with name crazy 'BIN$7cCqyWWLJxbgQAEPUFlF+g==$0', 'BIN$7cK199OiZ4jgQAEPUFkgKA==$0' and try DROP TRIGGER BIN$7cCqyWWLJxbgQAEPUFlF+g==$0; but I can't because the name have a '+' How Can delete these triggers?, i use oracle 10g 回答1: It's already dropped and in the recycle bin, which you can purge if you really need to. 来源: https://stackoverflow.com/questions/20669029/how-to-delete-trigger-in-oracle-that-contain-special-character

how to sort_area_size increase

吃可爱长大的小学妹 提交于 2020-01-05 05:41:51
问题 how set sort_area_size in oracle 10g and what size should be as i have more than 2.2m rows in single table. and please tell me the suggested size of SORT_AREA_RETAINED_SIZE as my queries are too much slow they takes more than 1 hours to complete. (mostly) please suggest me the way by which i can optimize my queries and tune the database oracle 10g thanks updated with query the query is SELECT A.TITLE,C.TOWN_VILL U_R,F.CODE TOWN_CODE,F.CITY_TOWN_MAKE,A.FRM,A.PRD_CODE,A.BR_CODE,A.SIZE_CODE ,B

Connecting to oracle 10g database through R

蓝咒 提交于 2020-01-05 05:31:10
问题 I want to import data from SQL databases through R.I tried too many times(almost 6 hrs) connecting to the server. I ran these command and it shows error:- jdbcDriver <- JDBC(driverClass="oracle.jdbc.OracleDriver", classPath="ojdbc6.jar") jdbcConnection <- dbConnect(jdbcDriver, "jdbc:oracle:thin:@//database.desktop-65l5f3s:1521/orcl", "username", "password") Error in .jcall(drv@jdrv, "Ljava/sql/Connection;", "connect", as.character(url)[1], : java.sql.SQLRecoverableException: IO Error: Unknown

Run exe from DBMS_SCHEDULER

可紊 提交于 2020-01-04 14:11:12
问题 I am kind of new in DMBS_SCHEDULER and I face some problems. I want to run an .exe So I created a Job: begin sys.dbms_scheduler.create_job(job_name => 'FTREC.EXE_1', job_type => 'EXECUTABLE', job_action => 'C:\Windows\System32\calc.exe', start_date => to_date(null), repeat_interval => '', end_date => to_date(null), job_class => 'IRECS_JOB_CLASS', enabled => false, auto_drop => false, comments => ''); end; I have also created credentials : DBMS_SCHEDULER.CREATE_CREDENTIAL('WWLSERVER',

How to Use COLLECT with VARCHAR2 Oracle 10g

邮差的信 提交于 2020-01-04 06:05:33
问题 I'm trying to get the COLLECT function to work for me. I'm using 10g and therefore found that LISTAGG and WM_CONCAT will not work (invalid identifier errors). The data I have is for example as follows. Order Lot 123 A23088 123 A23089 089 AABBCC 305 120848 305 CCDDYY What I need returned is as follows Order Lot 123 A23088, A23089 089 AABBCC 305 120848, CCDDYY Using the following, I get the error: TO_STRING is an invalid identifier TO_STRING ( CAST(COLLECT(DISTINCT LOT) AS varchar2(100)) ) AS

How to Use COLLECT with VARCHAR2 Oracle 10g

我的未来我决定 提交于 2020-01-04 06:04:07
问题 I'm trying to get the COLLECT function to work for me. I'm using 10g and therefore found that LISTAGG and WM_CONCAT will not work (invalid identifier errors). The data I have is for example as follows. Order Lot 123 A23088 123 A23089 089 AABBCC 305 120848 305 CCDDYY What I need returned is as follows Order Lot 123 A23088, A23089 089 AABBCC 305 120848, CCDDYY Using the following, I get the error: TO_STRING is an invalid identifier TO_STRING ( CAST(COLLECT(DISTINCT LOT) AS varchar2(100)) ) AS

difference between roles and users

孤人 提交于 2020-01-04 04:37:08
问题 What is the differences beween roles and users. 回答1: A role can have many users. An example might be an Admin role, which could mean someone who's assigned and their backup. Both would have the same rights, which are embodied in the role. Individuals can come and go, but roles remain. 回答2: A role typically defines a business function (or set of functions) performed by one or more users. Examples would be 'customer service agent' or 'business analyst'. A user is an individual person who is

can we execute unix command from oracle10g procedure

▼魔方 西西 提交于 2020-01-03 20:09:09
问题 Oracle10g in unix machine I have a requirement to execute the unix command in procedure how can I do that? 回答1: BEGIN DBMS_SCHEDULER.create_job( job_name => 'SHELL_JOB', repeat_interval => 'FREQ=DAILY; BYHOUR=2', job_type => 'EXECUTABLE', job_action => '/u01/app/oracle/admin/tools/shell_job.sh', enabled => TRUE, comments => 'Perform stuff' ); END; 回答2: You can use the DBMS_SCHEDULER package from Oracle. There is also an open source set of packages for doing this. You can find those here. 回答3:

dbms_xmlgen.getxml - How to set a date format

风格不统一 提交于 2020-01-03 17:06:11
问题 We are using dbms_xmlgen.getxml utility to generate xml using sql queries which fetches data from almost 10-15 related tables. By default, date format is getting generated in dd-MMM-yy format. Is there any way we can set dateformat in dbms_xmlgen.getxml utility. Notes - It is not feasible to use alter session nls_date_format from oracle user who calls this procedure. Also, We want to avoid using to_date function for each and every field since data is getting fetched from almost 10-15 related

Database Insert Mechanism

血红的双手。 提交于 2020-01-03 15:45:14
问题 I have a question in mind about the insert mechanism in different databases. Supposing a table with a single column primary key that is automatically generated (like identity columns), will the entire table become locked when inserting a new record? and if the insert takes too much time, will the other transactions have to wait more? 回答1: By default Oracle uses row level locks. These locks are blocking only for writers(update, delete, insert etc). That means select will works all the time