oracle11g

“Scaling of decimal value resulted in data truncation” via ODBC

有些话、适合烂在心里 提交于 2019-12-10 15:55:21
问题 I'm receiving an error of "Scaling of decimal value resulted in data truncation" when simply trying to view an ODBC table in MS Access. I know the field that is returning the error, and Access is able to recognize the field when querying off of it, but I'm not able to view the results ( #Error records) and the error keeps kicking back. I've tried CDbl() with no luck. A Nz() doesn't even allow the query to run. The source database is Oracle, connected via Database Client 11g Release 2 for

Oracle Error When Creating View - ORA-01720

笑着哭i 提交于 2019-12-10 15:37:39
问题 I am having an issue in my Oracle 11.2.0.4.0 environment that has me stumped. I have a WORKING, COMPILED view in existence, which I can select data from, but I cannot alter it without getting an "ORA-01720" error. A bit about my setup: I have 2 schemas, "A" and "B" to be simple. Schema "A" owns "TABLE1", "TABLE2", "TABLE3" and schema "B" currently has the grants required to select data from all 3 tables. I have verified that I can select the data through a query, as well as the view that

Cannot find table v$parameter in Oracle

百般思念 提交于 2019-12-10 15:36:12
问题 I want to get the number of sessions in Oracle using the SQL query: SELECT value FROM v$parameter WHERE name = 'sessions' But I get this error: Error starting at line 1 in command: SELECT value FROM v$parameter WHERE name = 'sessions' Error at Command Line:1 Column:18 Error report: SQL Error: ORA-00942: table or view does not exist 00942. 00000 - "table or view does not exist" *Cause: *Action: Maybe the Oracle user that I use is not privileged? 回答1: Generally the better approach is to use a

Java running in Oracle - the imported jars

不打扰是莪最后的温柔 提交于 2019-12-10 15:28:31
问题 I am trying to get a small java class to load into Oracle 11g so I can run it and call it from PL/SQL. I coded and compiled the class on my local machine in eclipse and it compiles fine. I packaged it up into a jar (with the other jar files it depends on in the jar). They I tried loading my jar into Oracle 11g. Everything loads in, unfortunately when it loads my custom java class, it stays invalid and when I try to compile it within Oracle it says it can't find references to the classes (the

Issue in connecting Java thin driver in oracle 11G r2

我们两清 提交于 2019-12-10 14:58:08
问题 public static Connection getConnection()throws SQLException,ClassNotFoundException { String username="scott"; String password="tiger"; String url="jdbc:oracle:thin:@localhost:1521"; Connection connection = null; System.out.println("before class"); Class.forName("oracle.jdbc.OracleDriver"); System.out.println("Before connection"); connection=DriverManager.getConnection(url,username,password); System.out.println("CONNECTED"); return connection; } Connection Name: orcl UserName:scott Password

How to use the Windows Keystore (MCS) with JDBC?

时光毁灭记忆、已成空白 提交于 2019-12-10 14:57:16
问题 I am trying to create a java application that uses PKI for authentication. I need to be able to retrieve a certificate from the Microsoft Certificate Store (MCS) and pass it along to an Oracle database (11.2). I am connecting using the jdbc:oracle:thin driver. After spending quite some time on google I have come up empty. I've found different properties to change (depending on the article): set the property javax.net.ssl.keyStoreType = "Windows-MY" set the javax.net.ssl.keyStore = "Windows-MY

Can't find directory created by using sqlplus console

那年仲夏 提交于 2019-12-10 14:54:19
问题 I created a directory using SQLPlus console but I cant find it on file system. Here is the command I used: SQL> create directory secfile as ’/opt/oracle’; Directory created. I have looked in my Oracle home directory( C:\Program Files (x86)\Oracle ) but there is no 'images' folder. Where should I look for it? I'm using Oracle 11g Data Base(installed on my C drive) and I need this directory to store pictures which I will be further storing in the data base. I was following a tutorial about

IO Error: The Network Adapter could not establish the connection - with Oracle 11gR2. Connecting with SQL developer

坚强是说给别人听的谎言 提交于 2019-12-10 13:38:06
问题 I have installed Oracle 11g ON a RedHat6 linux instance, by following all the steps mentioned in "http://technologylair.net/2013/08/oracle-11g-installation-linux/#comment-50" I am trying to connect to the database from a remote machine using the sql developer. But always ending up with - " IO Error: The Network Adapter could not establish the connection ". The parameters i am using are Username: sys as sysdba Password: <oracle password> Hostname: IP address of the server on which Oracle SQL

Click a link in one frame and display a JSP in the other frame

廉价感情. 提交于 2019-12-10 13:36:11
问题 I created two frames which respectively contain two links. When the first frame gets clicked, I would like to display a JSP page in the second frame. But I can't get it to work. When the first frame gets clicked, it opens the JSP page in a new window. I paste some of my code. This is my main.jsp <html> <frameset cols="50%,50%"> <frame src="frame1.jsp"> <frame src="frame2.jsp"> </frameset> </html> frame1.jsp <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

How do I connect to Oracle with SSIS? I am getting the error: “tns listener was not given the service_name in connect_data”

女生的网名这么多〃 提交于 2019-12-10 13:36:03
问题 I am trying to connect to an Oracle DB through the Oracle Provider for OLE DB in SSIS, but am getting the following error when testing the connection: "tns listener was not given the service_name in connect_data". I am not too familiar with Oracle, so could someone provide me some direction for how to fix this error? 回答1: You can add the service name after the host name with a forward slash between them. This has worked in both the Microsoft and Oracle OLE DB providers. IP/Service_Name also