Oracle 10g XE and CLOB data type
I am using Oracle 10.2.0.1.0 Express Edition and I wish to store large amounts of data in a CLOB column. I have created my table using a "standard" SQL statement similar to the following:
CREATE TABLE LotsofData(
id INT NOT NULL,
data CLOB);
The table is created successfully, so far so good.
And I used a "standard" insert SQL statement to insert large amount of data into the before mentioned table, similar to the follwing:
INSERT INTO LotsofData VALUES('4043', 'The quick brown fox jumps over the lazy dog.The quick brown fox jumps over the lazy dog <insert more iterations>');
The data being inserted takes up 4043 bytes. Now when attempting, using among other programs the handy web interface, to execute the insert statement I get this error:
Error starting at line 1 in command:
INSERT INTO LotsofData VALUES('4043', 'The quick brown fox jumps over the lazy dog.The quick brown fox jumps over the lazy dog <insert more iterations>');
Error at Command Line:1 Column:38
Error report:
SQL Error: ORA-01704: string literal too long
Now if I reduce the size of the data to be inserted to 4000 bytes or below there is no problem. I have performed searches on google groups, google search engine, the oracle site, this forum but not found a way to solve it... I have found documentation stating that there is support for 4gb of user data, but well that doesn't really help.
I have been on the trail of TABLESPACE and working with that, but with no luck. The data type BFILE will not work as I need to be able to change the data after it has been inserted into the table.
Is the 4000 bytes a limitation in the Express Edition and I should just forget it, or is there a way I configure the database to accept large amounts of data. Should I be creating the table using a different SQL statement?
kind regards
Chris Nilsson
Right... I found out how you can solve this, well not through the web interface... but oh well it is possible though...
the error I was getting was: ORA-01704: string literal too long.
the keyword/phrase is "bind variables"... Did a little more searching and found this site:
http://www.akadia.com/services/ora_bind_variables.html
So basically you use bind variables to insert data which fills more than 4000 bytes...
Since the data I will be inserting will be inserted via Java/.NET application I found the section called "Bind Variables in VB, Java and other applications" the most interesting... During my testing and I had neglected to use PreparedStatements in Java, and according to the site, using PreparedStatement provided an easier solution as the API does most of the work for you. My solution was to create a small program which read the large amounts of data from a file then feed this to a PreparedStatement, setObject or setASCIIStream/setCharacterStream, then execute it.
Well I hope this helps other people who get the same error code.
Similar Messages
-
Using CLOB data type - Pros and Cons
Dear Gurus,
We are designing a database that will be receiving comments from external data source. These comments are stored as CLOB in the external database. We found that only 1% of incoming data will be larger than 4000 characters and are now evaluating the Pros and Cons of storing only 4000 characters of incoming comments in VARCHAR2 data type or using CLOB data type.
Some of the concerns brought up during discussion were:
- having to store CLOBs in separate tablespace;
- applications, such Toad require changing defaults settings to display CLOBs in the grid. Default value is not to display them;
- applications that build web page with CLOBs will be struggling to fit 18 thousand chararcters of which 17 thousand are blank lines;
- cashing CLOBs in memory will consume big chunk of data buffers which will affect performance;
- to manipulate CLOBs you need PL/SQL anonymous block or procedure;
- bind variables cannot be assigned CLOB value;
- dynamic SQL cannot use CLOBs;
- temp tables don't work very well with CLOBs;
- fuzzy logic search on CLOBs is ineffective;
- not all ODBC drivers support Oracle CLOBs
- UNION, MINUS, INTERSECT don't work with CLOBs
I have not delt with CLOB data type in the past, so I am hoping to hear from you of any possible issues/hastles we may encounter?848428 wrote:
Dear Gurus,
We are designing a database that will be receiving comments from external data source. These comments are stored as CLOB in the external database. We found that only 1% of incoming data will be larger than 4000 characters and are now evaluating the Pros and Cons of storing only 4000 characters of incoming comments in VARCHAR2 data type or using CLOB data type.
Some of the concerns brought up during discussion were:
- having to store CLOBs in separate tablespace;They can be stored inline too. Depends on requirements.
- applications, such Toad require changing defaults settings to display CLOBs in the grid. Default value is not to display them;Toad is a developer tool so that shouldn't matter. What should matter is how you display the data to end users etc. but that will depend on the interface. Some can handle CLOBs and others not. Again, it depends on the requirements.
- applications that build web page with CLOBs will be struggling to fit 18 thousand chararcters of which 17 thousand are blank lines;Why would they struggle? 18,000 characters is only around 18k in file size, that's not that big to a web page.
- cashing CLOBs in memory will consume big chunk of data buffers which will affect performance;Who's caching them in memory? What are you planning on doing with these CLOBs? There's no real reason they should impact performance any more than anything else, but it depends on your requirements as to how you plan to use them.
- to manipulate CLOBs you need PL/SQL anonymous block or procedure;You can manipulate CLOBs in SQL too, using the DBMS_LOB package.
- bind variables cannot be assigned CLOB value;Are you sure?
- dynamic SQL cannot use CLOBs;Yes it can. 11g supports CLOBs for EXECUTE IMMEDIATE statements and pre 11g you can use the DBMS_SQL package with CLOB's split into a VARCHAR2S structure.
- temp tables don't work very well with CLOBs;What do you mean "don't work well"?
- fuzzy logic search on CLOBs is ineffective;Seems like you're pulling information from various sources without context. Again, it depends on your requirements as to how you are going to use the CLOB's
- not all ODBC drivers support Oracle CLOBs not all, but there are some. Again, it depends what you want to achieve.
- UNION, MINUS, INTERSECT don't work with CLOBsTrue.
I have not delt with CLOB data type in the past, so I am hoping to hear from you of any possible issues/hastles we may encounter?You may have more hassle if you "need" to accept more than 4000 characters and you are splitting it into seperate columns or rows, when a CLOB would do it easily.
It seems as though you are trying to find all the negative aspects of CLOBs and ignoring all the positive aspects, and also ignoring the negative aspects of not using CLOB's.
Without context you're assumptions are just that, assumptions, so nobody can tell you if it will be right or wrong to use them. CLOB's do have their uses, just as XMLTYPE's have their uses etc. If you're using them for the right reasons then great, but if you're ignoring them for the wrong reasons then you'll suffer. -
Clob data type oracle to oracle issue
Hi Guys
i am unable to load clob data type and am getting the following error
" java.lang.NumberFormatException: For input "string: "4294967295"
i also have checked for clob data type in topology manager -- technology -- oracle -- data type
and it is available.
i have added the following statement in my parameter file
set ODI_ADDITIONAL_JAVA_OPTIONS=%ODI_ADDITIONAL_JAVA_OPTIONS% " -Doracledatabasemetadata.get_lob_precision=false";
but i don't see any statement like the one below after which i have to add the above statement.
set ODI_ADDITIONAL_JAVA_OPTIONS="-Djava.security.policy=server.policy";
please let me know how to make the clob data type work
Regards
janakiramHi Sutirtha
Yes i am able to view source data with clob data type by Right click onto your source datastore ---> View data
I have checked metalink
it says
1. Oracle recommends the setting of the "get_lob_precision" flag to FALSE to avoid this message when dealing with LOB family datatypes (CLOB, BLOB, NCLOB, BFILE...).
i have used the follwoing setting
set ODI_JAVA_OPTIONS="-Djava.security.policy=server.policy"
set ODI_ADDITIONAL_JAVA_OPTIONS=%ODI_ADDITIONAL_JAVA_OPTIONS% "-Doracledatabasemetadata.get_lob_precision=false"
2. checked the internal id of CLOB data type and it ends with 999
but still i have the same problem
Regards
janakiram -
UNDERSTAND THE NEW DATE AND TIME DATA TYPES IN ORACLE 9I
제품 : SQL*PLUS
작성날짜 : 2001-08-01
UNDERSTAND THE NEW DATE AND TIME DATA TYPES IN ORACLE 9I
========================================================
PURPOSE
Oracle 9i 에서 소개되는 새로운 datetime data type 에 대해 소개한다.
Explanation
Example
1. Datetime Datatypes
1) TIMESTAMP
: YEAR/MONTH/DAY/HOUR/MINUTE/SECOND
2) TIMESTAMP WITH TIME ZONE
: YEAR/MONTH/DAY/HOUR/MINUTE/SECOND/
TIMEZONE_HOUR/TIMEZONE_MINUTE( +09:00 )
or TIMEZONE_REGION( Asia/Seoul )
3) TIMESTAMP WITH LOCAL TIME ZONE
: YEAR/MONTH/DAY/HOUR/MINUTE/SECOND
4) TIME WITH TIME ZONE
: HOUR/MINUTE/SECOND/TIMEZONE_HOUR/TIMEZONE_MINUTE
2. Datetime Fields
1) YEAR/MONTH/DAY/HOUR/MINUTE
2) SECOND(00 to 59.9(N) is precision) : Range 0 to 9, default is 6
3) TIMEZONE_HOUR : -12 to 13
4) TIMEZONE_MINUTE : 00 to 59
5) TIMEZONE_REGION : Listed in v$timezone_names
3. DATE 와 TIMESTAMP 와의 차이점
SQL> select hiredate from emp;
HIREDATE
17-DEC-80
20-FEB-81
SQL> alter table employees modify hiredate timestamp;
SQL> select hiredate from employees;
HIREDATE
17-DEC-80 12.00.00.000000 AM
20-FEB-81 12.00.00.000000 AM
단, 해당 Column 에 Data 가 있다면 DATE/TIMESTAMP -> TIMESTAMP WITH
TIME ZONE 으로 Convert 할 수 없다.
SQL> alter table employees modify hiredate timestamp with time zone;
alter table employees modify hiredate timestamp with time zone
ERROR at line 1:
ORA-01439: column to be modified must be empty to change datatype
4. TIMESTAMP WITH TIME ZONE Datatype
TIMESTAMP '2001-05-24 10:00:00 +09:00'
TIMESTAMP '2001-05-24 10:00:00 Asia/Seoul'
TIMESTAMP '2001-05-24 10:00:00 KST'
5. TIMESTAMP WITH LOCAL TIME ZONE Datatype
SQL> create table date_tab (date_col TIMESTAMP WITH LOCAL TIME ZONE);
SQL> insert into date_tab values ('15-NOV-00 09:34:28 AM');
SQL> select * from date_tab;
DATE_COL
15-NOV-00 09.34.28.000000 AM
SQL> alter session set TIME_ZONE = 'EUROPE/LONDON';
SQL> select * from date_tab;
DATE_COL
15-NOV-00 12.34.28.000000 AM
6. INTERVAL Datatypes
1) INTERVAL YEAR(year_precision) TO MONTH
: YEAR/MONTH
: Year_precision default value is 2
SQL> create table orders (warranty interval year to month);
SQL> insert into orders values ('2-6');
SQL> select warranty from orders;
WARRANTY
+02-06
2) INTERVAL DAY (day_precision) TO SECOND (fractional_seconds_precision)
: DAY/HOUR/MINUTE/SECOND
: Logon time 확인시 주로 사용
: day_precision range 0 to 9, default is 2
SQL> create table orders (warranty interval day(2) to second);
SQL> insert into orders values ('90 00:00:00');
SQL> select warranty from orders;
WARRANTY
+90 00:00:00.000000
7. Interval Fields
- YEAR : Any positive or negative integer
- MONTH : 00 to 11
- DAY : Any positive or negative integer
- HOUR : 00 to 23
- MINUTE : 00 to 59
- SECOND : 00 to 59.9(N) where 9(N) is precision
8. Using Time Zones
1) Database operation
- Defined at CREATE DATABASE
- Can be altered with ALTER DATABASE
- Current value given by DBTIMEZONE
2) Session operation
- Defined with environment variable ORA_SDTZ
- Can be altered with ALTER SESSION SET TIME_ZONE
- Current value given by SESSIONTIMEZONE
3) TIMESTAMP WITH LOCAL TIMEZONE
- TIME_ZONE Session parameter
: O/S Local Time Zone
Alter session set time_zone = '-05:00';
: An absolute offset
Alter session set time_zone = dbtimezone;
: Database time zone
Alter session set time_zone = local;
: A named region
Alter session set time_zone = 'America/New_York';
Reference Document
------------------Hi ,
I am facing the same problem and my scenario is also same (BAPI's).
So can you please tell me how you overcome this problem .
Thanks,
Rahul -
Error while loading data into clob data type.
Hi,
I have created interface to load data from oracle table into oracle table.In target table we have attribute with clob data type. while loading data into clob field ODI gave below error. I use odi 10.1.3.6.0
java.lang.NumberFormatException: For input string: "4294967295"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
Let me know if anyone come across and resolved this kind of issue.
Thanks much,
Nishit GajjarMr. Gajjar,
You didnt mention what KMs you are using ?
have a read of
Re: Facing issues while using BLOB
and
Load BLOB column in Oracle to Image column in MS SQL Server
Try again.
And can you please mark the Correct/Helpful points to the answers too.
Edited by: actdi on Jan 10, 2012 10:45 AM -
Problem to connect between Oracle 10g xe and VB2010 at Vista sp2
Introduction
Hi guys, good day... NEED RESCUE!! SOS!! Hmm.. i have trouble been 1 weeks trying connect between Oracle 10g xe and VB2010 on window vista sp2. Actaully im very new at Oracle 10g xe and VB2010 but i got a project is going to build up system database and i figure out Oracle 10g xe and VB2010 can use free so i just chows these appication to be my project. I been search around internet and there is several things i was found about the connection but i has try and tried still it wont work out.
Things i found and learned
Oracle
1. I have download Oracle 10g XE and installed in my windows vista sp2.
2. I notice the Oracle Developer Tools is needed for VB2010 (To add reference 'Oracle.DataAccess'). So i was downloaded ODT11beta and installed
3. I also edit TNSNAMES to following below:
OraDb =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = shin-PC)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
4. My sqlnet like following below:
SQLNET.AUTHENTICATION_SERVICES = (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
5.I have try tnsping OraDB and its works.
6. I monitoring task manager and OracleServicesXE is running.
7. ora_dba is added in Group.
Problem in SQLPLUS
When i try connect SQLPLUS in cmd i get ERROR: ORA-12560: TNS:protocol adapter error.
i . In cmd i type sqlplus and enter then i been ask for username and password.
ii. After i insert my username and password and enter then i get the error of ORA-12560.
Visual Basic 2010
1. First i created my project, drawing label and button for test connection.
2. Then, i add reference Oracle.DataAccess into my project.
3. I type following script into my vb form:
Imports System.Data
Imports Oracle.DataAccess.Client
Imports Oracle.DataAccess.Types
Public Class Logon
Private Sub cmdLogon_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdLogon.Click
Dim oradb As String = "Data Source = OraDb; User Id = system; Password = shin;"
Dim conn As New OracleConnection(oradb)
conn.Open()
Dim cmd As New OracleCommand
cmd.Connection = conn
cmd.CommandText = "select SName from Staff where SName = shin"
cmd.CommandType = CommandType.Text
Dim dr As OracleDataReader = cmd.ExecuteReader()
dr.Read()
lblOra.Text = dr.Item("SName")
conn.Dispose()
End Sub
End Class
Problem in VB2010
When i run my project and press the button i get error message ORA-12514: TNS:could not resolve the connect identifier specified at conn.Open()
Extra Question*
1. Im notice in my netbook xp home sp2, before i install ODT11beta my sqlplus look fine thought cmd but after i installed ODT11beta its same problem with my Vista sp2 now. Get error ORA-12560: TNS:protocol adapter error :( I tried uninstall ODT11beta again and restart its work fine again. Which i really dun understand. Izzit the version ODT11 is not suitable for 10g xe? And i dunno this problem is related with my connection between oracle 10g xe and vb2010 or not. So confuse@@
2. I wish to know more about connect between Oracle and VB, is there still a things i miss?(I mean steps or configuration that should i done)
3. Or i just lower my VB version could make more easy? If yes, what version VB should i use that could work out with oracle 10g xe?
4. Sorry for too bad my english but i really wish somebody could help me. Please try to understand my written or you could ask me mean if dont understand. Im stuck!! Stuck feel not really that good.....
Edited by: user9173084 on Jul 19, 2010 3:34 AMHuhu..
Yo, henry
I thought the OraDb is just a name for entry but im not sure it is a service. I was refer http://www.oracle.com/technology/pub/articles/cook-vs08.html at topic Connection Strings and Objects.
Here is my lsnrctl service
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOW has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOW has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Service "XEXDB" has 1 instance(s).
Instance "xe", status READY has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 state:ready
DISPATCHER <machine: SHIN-PC, pid: 1932>
(ADDRESS=(PROTOCOL=tcp)(HOST=shin-pc)(PORT=49158))
Service "XE_XPT" has 1 instance(s).
Instance "xe", status READY has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
Service "xe" has 1 instance(s).
Instance "xe", status READY has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
The command completed successfully
Izzit ok? I notice there is no listed OraDb. but tnsping OraDb seem fine.
Actually there is somethings as a newbie i wondering long time alreadly ><
1. The origin of tnsname.ora is no OraDb or ORCL but i just simple add it by open tnsname.ora with notepad. Im just not sure it is function or not.
Also please check at my TNSNAME.ORA:
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = shin-PC)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
OraDb =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = shin-PC)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
I got the feeling there is so close~~~!!! -
Pl/sql Procedure is Not Creating With the CLOB data Type
Hi,
I am Using Oracle 10g Express Edition Release2.... My Doubt is While creating a table With CLOB Data Type the table is created successfully,but while Creating a Procedure With the CLOB Data type i am getting an Error Message
2667/5 PL/SQL: Statement ignored
2667/24 PLS-00382: expression is of wrong type
then i tried With the Varchar2(30000) the Procedure is Created Successfully note i have not changed any thing in my code except the data type.
I am Just Confused ......Why the Procedure is not Created with CLOB Data type?
Please advice ...
Thank U
SHANhi,
Thanks for reply....Another Example
CREATE TABLE USER_MAS (USER_ID VARCHAR2 (20 Byte),MAIL_ID VARCHAR2 (255 Byte));
set serveroutput on
declare
atable varchar2(64) := 'USER_MAS';
acolumn varchar2(64) := 'MAIL_ID';
avalue varchar2(64) := 'NEWYORK' ;
dyn_sql clob;
begin
dyn_sql := 'update '||atable||' set '||acolumn||' = '''||avalue|| '''' ;
dbms_output.put_line(dyn_sql);
execute immediate dyn_sql;
end;
commit ;
Error at line 2
ORA-06550: line 9, column 23:
PLS-00382: expression is of wrong type
ORA-06550: line 9, column 5:
PL/SQL: Statement ignored
When i Changed the Data type to varchar2(64)
update USER_MAS set MAIL_ID = 'NEWYORK'
PL/SQL procedure successfully completed.
Commit complete.
I like to Know the Reason Why the Procedure is Not Created in Oracle 10g XE DB
Note :the Same Script i used in 11g DB the Procedure is Created Successfully....
Why you need use CLOB or VARCHAR2 in your temp_num variable as you sending parameters as number?
In the Procedure we are create some run time queries while executing the procedure. There are around 10 run time queries created.
The size of each query is more than 4000 characters . We then add all the queries using union all after each query to the clob variable as the normal varchar will not support.
Please Advice
Thank U
SHAN -
BLOB and CLOB data in BI Publisher
Hello,
I have an XML file with blob and clob data in it. I am using BI desktop publisher to load the xml file and create the rtf template. I am getting the following error:
ConfFile: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\config\xdoconfig.xml
Font Dir: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts
Run XDO Start
Template: C:\work\employee.rtf
RTFProcessor setLocale: en-us
FOProcessor setData: C:\work\employee.xml
FOProcessor setLocale: en-us
Do i need to install anything or am i missing any configuration to read the blob and clob? Please advise
thanksCheck this out, hopefully it'll help you
http://oraclebizint.wordpress.com/2007/11/12/oracle-bi-ee-101332-working-with-clob-fields/
Fiston -
Error to connect oracle 10g client and designer BO 4.0
hello,
I try to connect oracle 10g client and designer BO 4.0.
I created an ODBC connection to function in the administration tools of data sources but I can not connect once in designer.
I tried using the driver directly oracle designer 10 but I have the same error that is this:
DBD: ORA-12154: TNS: connection identifier specified could not be resolved
someone there had the same concerns?
cordiallyHi,
so it looks like that your TNSNAMES.ORA file isn`t properly configured. Thats why you can connect with the IDT to your Oracle Database.
Your DBA`s should sent you the correct TNSNAMES.ORA file or the entry for your DB prior. After the tnsping works, you will be able to use the IDT properly.
Regards
-Seb. -
Slow first connection using Oracle 10g xe and Visual Studio 2008
{noformat}
Good day,
I'm slightly unaccustomed to using forums, so bear with me.
My initial connection to the Oracle database takes approximately 30 seconds. It seems to be waiting for a connection before timing out and trying another connection which works, as all subsequent connections work immediately. I'm unsure how other people's responses in forums can help me due to the plethora of configurations, so here's mine. My comprehension of the oracle world is still growing, you'll have to explain the terms you're using for me, Hoping you can help.
I'm using Visual Studio 2008, set to use 32 bit debug mode, on a Windows 7 Pro platform. Also using Oracle 10g Xe, and have installed the 32 bit version of ODAC 11.2 (11.2.0.1) to aid making a connection from Visual Studio to Oracle.
I have a database set up and a user with system admin rights. This is all local for a programming project and will never see the light of day outside of my personal machine.
I am using code to connect, not the GUI. I wish to code this project completely without the aid of the GUI. so my connection string within Visual Studio C# is (pw/id hidden)...
string xe = "Data Source=xe;User Id=xxxxx;Password=xxxxx;";
OracleConnection conn = new OracleConnection(xe);
My c:\devsuitehome\network\admin\sqlnet.ora file is this:
# sqlnet.ora Network Configuration File: C:\DevSuiteHome\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (LDAP, TNSNAMES, EZCONNECT, ONAMES, HOSTNAME)
And my c:\devsuitehome\network\admin\TNSNames.ora file is this:
tnsnames.ora Network Configuration File: C:\DevSuiteHome\network\admin\tnsnames.ora
Generated by Oracle configuration tools.
XE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = xe)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = <machine name)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = PLSExtProc)
Just for good measure, my tnsping xe shows:
"Used paramter files:<br/>
c:\devsuitehome\network\admin\sqlnet.ora<br/><br/>
Used TNSNAMES adapter to resolve the alias<br/>
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)))(CONNECT_DATA = (SERVICE_NAME = xe)))
OK (0 msec)"
So, how can I make that initial connection faster so I don't spend 15 years testing my application due to slow start-ups? :)
Thank you.
Kevin.
{noformat}
Edited by: 832285 on Jan 29, 2011 10:08 AM
Edited by: 832285 on Jan 29, 2011 10:10 AMI have formatted my hard drive since my first post. I was running window 64 bit with a higher version of the ODAC and that proved to crash my machine with faulty error messages about memory. I have reverted to a previous version of the ODAC tools and everything works very smooth now. Still the connection time is consistently 20 seconds or longer on the first attempt.
Just a little more information.. I am currently taking a college course with 15 other students, as you can tell by the impersonal machine name, where programming using visual studio 2008, and Oracle 10g xe is expected. All of us are using a 64 bit environment and we all have difficulties cutting down the load time of making the first connection to Oracle. Some people are longer making the connection, but none are shorter.
One other note. After the first connection is made, taking 20 or more seconds, and is closed, all subsequent openings of the connection are instantaneous, for all of us.
If there is ANYTHING more I can get for you, please let me know. With my environment stable as it is, I will not need to format or change any information for the foreseeable future.
Here is the information you requested
1 The connection method I am using, I have chosen the manual connection for you, however the delay exists if the connection is made through the GUI as well.
Historically, I am getting slow connection speeds through adding the connection through the GUI or by a manual connection. Here is how I am doing it manually. I have the connection being created in 20 seconds, which is the best I can get.
Imports Oracle.DataAccess.Client
Also included project reference: oracle.dataaccess / version 2.111.6.20
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim connString As String = "Data Source=XE;User Id=abc;Password=abc;"
Dim con As OracleConnection = New OracleConnection()
con.ConnectionString = connString
Try
con.Open()
MessageBox.Show("Connected!")
con.Close()
con.Dispose()
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End SubMy current TNS Ping results
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 16-FEB-2011 01:02:36
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))
OK (0 msec)2 Connection to SQL plus is instantaneous.
I fought for weeks about the ODAC version 11.2.0.1 that you see in the previous post, and that would be a whole new thread. Suffice it to say I have a reliable environment to program in with this 10.2.0.1.0 version that I am running now, and the connection time has not changed, it is still minimum 20 seconds load time, sometimes up to 25.
3 Ram usage in my typical environment
I am running this laptop with 4 gigs of ram. This is a typical environment I would be running my application in.
Physical memory
total 4090
cached 1753
available 2345
free 656
system
handles 27141
threads 911
processes 70
commit megs 2860/8179
kernel memory megs
paged 201
nonpaged 52
4 I formatted my machine and reinstalled the Windows 7 professional operating system as of a few nights ago. The Oracle software on my machine is
Oracle Database 10g express edition
ODAC 11.1.0
I amm not sure what filename you would need in addition to the product names that I have installed.
5 The information from the SET command is
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\stepheke\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=STEKEV0908
ComSpec=C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\stepheke
LOCALAPPDATA=C:\Users\stepheke\AppData\Local
LOGONSERVER=\\STEKEV0908
NUMBER_OF_PROCESSORS=2
oracle_sid=xe
OS=Windows_NT
Path=C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Oracleapp\stepheke\product\11.1.0\client_1;C:\Oracleapp\stepheke\product\11.1.0\client_1\bin;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\Windows Live\Shared
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 23 Stepping 10, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=170a
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\stepheke\AppData\Local\Temp
TMP=C:\Users\stepheke\AppData\Local\Temp
USERDOMAIN=stekev0908
USERNAME=stepheke
USERPROFILE=C:\Users\stepheke
VS90COMNTOOLS=c:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\
windir=C:\Windows -
Error when Converts rows to columns dynamically in clob data type
Hi
I am using below pl/sql statement
SELECT NO,
MAX (DECODE (NAME, 'A', VALUE1, NULL)) AS A,
MAX (DECODE (NAME, 'B', VALUE1, NULL)) AS B,
MAX (DECODE (NAME, 'C, VALUE1, NULL)) AS C,
MAX (DECODE (NAME, 'D', VALUE1, NULL)) AS D
FROM ( SELECT NO,
RTRIM (
XMLAGG (XMLELEMENT (E, VALUE || ',')).EXTRACT ('//text()').
GETCLOBVAL (),
VALUE1,
NAME
FROM DA
while i am execute for varchar type its as i expected. when i tried with clob data type i am getting follwoing error.
ORA-00932: inconsistent datatypes: expected - got CLOB
can any one pleas me?
thanks
Nagarajan.VNagarajan Venu wrote:
Thanks for your reply
This is scenario.
This is my table
NO--name--value
1--A--ASDF
2--B--IOP
all columns are clob type and i want the output like below.
No--A
1--ASDF
2--IOP
i just want to convert all rows to coulmns(clob type) dynamically.I don't get how you got that output from the data? What happened to "B"?
Please post a suitable example and expected output using create table and insert statements as well as giving your database version and using {noformat}{noformat} tags as detailed in the FAQ: {message:id=9360002} -
Dear Experts,
i am getting the below error when i was giving * (Star) to view all the items in DB
[Microsoft][SQL Server Native Client 11.0][SQL Server]The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. 'Items' (OITM) (OITM)
As i was searching individually it is working fine
can any one help me how to find this..
Regards,
Meghanath.SDear Nithi Anandham,
i am not having any query while finding all the items in item master data i am giving find mode and in item code i was trying to type *(Star) and enter while typing enter the above issue i was facing..
Regards,
Meghanath -
hi Experts,
while running SQL Query i am getting an error as
The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. for the query
select T1. Dscription,T1.docEntry,T1.Quantity,T1.Price ,
T2.LineText
from OQUT T0 INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN
QUT10 T2 ON T1.DocEntry = T2.DocEntry where T1.DocEntry='590'
group by T1. Dscription,T1.docEntry,T1.Quantity,T1.Price
,T2.LineText
how to resolve the issueDear Meghanath,
Please use the following query, Hope your purpose will serve.
select T1. Dscription,T1.docEntry,T1.Quantity,T1.Price ,
CAST(T2.LineText as nvarchar (MAX))[LineText]
from OQUT T0 INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry LEFT OUTER JOIN
QUT10 T2 ON T1.DocEntry = T2.DocEntry --where T1.DocEntry='590'
group by T1. Dscription,T1.docEntry,T1.Quantity,T1.Price
,CAST(T2.LineText as nvarchar (MAX))
Regards,
Amit -
Oracle 10g XE and Oracle 8.1
HI,
I am new in oracle and I installed both Oracle 10g XE and after Oracle 8.17 Standard with Apache server. Does anybody know why Oracle 10g XE doesn't start (doesn't find APEX) when Oracle 8.17 is running on the same computer?
Tks,
LaurentiuYou can not use XE parallel with another Oracle instance. Only one instance per network.
Cheers! -
Installing Oracle 10g Forms and Reports in Cluster Mode
Dear All,
My OS version is RHEL 4
In our current setup we have oracle 10g database two node cluster and Application Server 10g to node cluster.
Currently our report server has been configured to run in standalone mode
I have been asked to configure oracle 10g forms and report server in cluster mode.
Please provide me with the documentation link to configure oracle 10g reports server in cluster mode.
Thanks and Regards
Monoj Dasmy main goal is load balancing only
Then what I've done in 2007 might be what you need. In that thread there is a link to Web Cache Administrator's Guide : there you'll find everything you need to configure the web cache as a load balancer, particularly chapter 8 Setup and Configuration.
Anyway, here briefly some configurations : we have two machines, say MachineA and MachineB. The DNS resolves MachineA to a virtual address, which is normally assigned to MachineA; if MachineA crashes, it gets assigned to MachineB.
Users URL looks like this : http://MachineA:<port>/forms/frmservlet?config=<some config>
MachineA's web cache distributes connection requests between MachineA and MachineB.
Of course we're now using 11g as well, but that's another thing.
Maybe you are looking for
-
Font in embedded swf now not showing in ie6
Hi There, We've noticed that a .swf which was recently updated using CS5 no longer displays the font in ie6 - it was originally created several years ago in CS3 so we're wondering if something has changed with regard to the way Flash embeds fonts? Th
-
Photoshop CC crash when using Nik Collection
I have been using Lightroom 5 and Nik Collections plugins successfully for a while and just got Photoshop CC. Unfortunately Photoshop CC crash when I save my work that I have done in ColorEfex Pro 4 or SilverEfex Pro 2. The other plugins in the Nik C
-
Stock report Bin location wise
Dear expert, i want "stock report Bin location wise" in crystal report, anybody can provide sql query. thanks
-
NWDI in E.P 7.0 Configuration Problem
Hello Everyone, I have Selected 'DI' While Installing SAP and for Configuring NWDI I have run the DI Template in SAP Netweaver Adminstration. Imported the Configuration in NWDS in DevelopmentConfiguration Perspective. 1.While creating the Development
-
Checking user roles in FI Module
Hi, Please let me know the points to be considered while checking the security and authorization in FI modules based on a user role. Thanks, Sridevi