oracle11g

Ora-29283 error on 11g

扶醉桌前 提交于 2020-01-05 05:10:15
问题 Is it possible to access a folder on my PC from oracle database? In other words database is not installed on my local machine and I have created a folder on my PC 'C:\LOB' where I want to save images retrieved from database, but it is returning an ORA-29283 error: invalid file operation. I am sure that directory is created because I can see it in directories folder in my database. So what could be the problem? is it because folder is created on my PC and database is somewhere else? Below is

ORA-00972: Identifier is too long

点点圈 提交于 2020-01-05 04:37:06
问题 I have a query that I am executing in visual studio's query tool and I am getting the following error. ORA-00972: identifier too long. Now I believe I am aware that oracle has a 30 byte limit, but this is the query I am trying to execute. select "cef_tsroma.tsrido" as "truck", "cef_tsroma.dosvlg" as "rideNumber", "cef_v_cw_shipment.shipmentNumber" as "shipmentNumber" from "cef_tsroma" left outer join "cef_v_cw_shipment" on "rideNumber" = "shipmentNumber" where "truck" = '104490' Unfortunately

So how is `ROLLBACK` in Oracle exception handler different from my `ROLLBACK`?

末鹿安然 提交于 2020-01-05 04:18:11
问题 How Oracle Database rollback to the beginning of the PL/SQL block, but not the earlier DML instructions (I think all this come under one single transaction). Because when I try to ROLLBACK creating an exception handler all the instructions until last COMMIT are rolled back. create table mytable (num int not null primary key); insert into mytable values(1); // My ROLLBACK, rollbacks to here. begin // Oracle exception handler rollbacks to here. insert into mytable values(3); begin insert into

Convert oracle query to stored procedure for SQL Server Reporting Services (SSRS)

点点圈 提交于 2020-01-04 15:25:10
问题 How can I convert this query to a stored procedure that returns also the same(fields) table: SELECT R.REGION_NAME, TP.TERRITORY_NAME, LSC.LOOKUP_NAME, CAST (WM_CONCAT (CM.CUST_NAME) AS VARCHAR2 (500)) AS CUST_NAMES, TP.VIEWER_PROFILE, TP.CASTING_PREFERENCE, TP.PROG_TYPE_PREFERENCE, STN_LIST.STN_NAMES, STN_LIST.LIC_RIGHTS FROM TERRITORY_PROFILE_MSTR TP INNER JOIN REGION_MSTR R ON TP.REGION_ID = R.REGION_ID LEFT OUTER JOIN LOOKUP_SUB_CATEGORY LSC ON TP.BROADCAST_STD_CD = LSC.LOOKUP_SUB_CAT_ID

Printing characters one by one from a string(VARCHAR2) oracle sql without using plsql and also without using dual

六月ゝ 毕业季﹏ 提交于 2020-01-04 14:09:11
问题 I am learning SQL using ORACLE 11g. How to print a string(comes from a SELECT query), character by character in ORACLE SQL, without using dual and also without using PLSQL? Here is the sample string: 'MANOJ' and the output should be like this: M A N O J I tried using LEVEL,CONNECT BY but they are not working in isqlplus. Please help! 回答1: It is a simple use of SUBSTR and CONNECT BY LEVEL . Have a look at How to split string into rows. For example, SQL> SELECT SUBSTR('MANOJ', level, 1) str 2

add $ and round 2 decimal places SQL

孤者浪人 提交于 2020-01-04 14:06:25
问题 I am looking to format an ouput which is created by a sub-query, this sub-query produces a calculated field which i would like to format as $XX.XX. Sub query: (select avg(retail) from cars where brand = 'FORD' or brand = 'TOYOTA') as AVG_BRAND_PRICE_01 I basically just want to add a $ sign and round the output to two decimal places. Any help or direction would be much appreciated. I am using isql plus oracle 11g 回答1: You could try this: '$' || Cast((select avg(retail) from cars where brand =

Unobtrusive Oracle Deployment on Windows Server 2008

别说谁变了你拦得住时间么 提交于 2020-01-04 11:47:06
问题 I have a .NET 4.0 Web Forms app that I am running with the beta Oracle EF-aware data provider, and I want to perform "unobtrusive" Oracle deployment to a Win2K8 box, as shown in many SO solutions. There is an existing Oracle Instant Client installation on the Win2K8 box, which I can neither work with nor remove, and it has an entry in the PATH environment variable on the Win2K8 box. According to this SO answer, I do not need to set PATH for my Oracle DLLs, since I have DllPath set in the web

Unobtrusive Oracle Deployment on Windows Server 2008

三世轮回 提交于 2020-01-04 11:46:09
问题 I have a .NET 4.0 Web Forms app that I am running with the beta Oracle EF-aware data provider, and I want to perform "unobtrusive" Oracle deployment to a Win2K8 box, as shown in many SO solutions. There is an existing Oracle Instant Client installation on the Win2K8 box, which I can neither work with nor remove, and it has an entry in the PATH environment variable on the Win2K8 box. According to this SO answer, I do not need to set PATH for my Oracle DLLs, since I have DllPath set in the web

Unobtrusive Oracle Deployment on Windows Server 2008

房东的猫 提交于 2020-01-04 11:44:47
问题 I have a .NET 4.0 Web Forms app that I am running with the beta Oracle EF-aware data provider, and I want to perform "unobtrusive" Oracle deployment to a Win2K8 box, as shown in many SO solutions. There is an existing Oracle Instant Client installation on the Win2K8 box, which I can neither work with nor remove, and it has an entry in the PATH environment variable on the Win2K8 box. According to this SO answer, I do not need to set PATH for my Oracle DLLs, since I have DllPath set in the web

DBMS LOB.SUBSTR Throwing ORA-00904: Invalid Identifier Error

假如想象 提交于 2020-01-04 11:05:05
问题 One of our cutomer is running the scripts in oracle sql developer to upgrade his database table structure, procudere & triggers etc. But while running the script, he is getting ORA-00904: Invalid Identifier Error for DBMS_LOB.SUBSTR() and DBMS_LOB.GETLENGTH() in one procedure. Can somebody tell why is happening so? There are using Oracle Sql developer Version 3.1.07 Build MAIN-07.42 with Oracle 11g. 回答1: I imagine 3 possible reasons: the user lacks execute privilege on sys.dbms_lob (although