Problem with SQL report to modify data
Hi allI don't know that I'm writing this question in the right page or not. But my question is: I have a column in my table which is of type varchar. Data in this column are as Fallows:
257414/45y
194662223445 8877/j7tg
.....
I wanted to know, is anyway I can show this data in my report without any / or - fallow:
25741445y
1946622234458877j7tg
Just for your information, this is a sql report.
Thank you
I read your question because how do you remove both the ' / ' and '-' characters. If true do as follows:
Select REPLACE(REPLACE('194662223445-8877/j7tg','/'),'-','') from DUAL
At the end of the statement where ") of the DOUBLE appears, these two single quote characters have no space between them. That means replace NULL for the characters you want to replace.
You can test the statement leaving from DOUBLE. Once satisfied, change it to 'from MyTable '.
I don't know what to tell you on the TTITLE. It of what I used and always works to print a title.
Tags: Database
Similar Questions
-
Having problems with SQL Developer connection to the database on a LINUX machine
Having problems with SQL Developer connection to the database on a LINUX machine
Hello
I am trying to connect my machine to windows 7 Home premium to an oracle database 11 g on RedHat 5 machine using SQL Developer. I got this error on SQL Developer
Status: Failed - Test has failed: the network adapter could not establish the connection
on Linux
and TNSPINGLSNRCTL> status Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production Start Date 03-APR-2013 16:13:13 Uptime 7 days 22 hr. 16 min. 41 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora Listener Log File /u01/app/oracle/product/11.2.0/db_1/network/log/listener.log Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.X.X.X)(PORT=1521))) Services Summary... Service "PLSExtProc" has 1 instance(s). Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service... Service "orc11g" has 1 instance(s). Instance "orc11g", status READY, has 1 handler(s) for this service... Service "orc11gXDB" has 1 instance(s). Instance "orc11g", status READY, has 1 handler(s) for this service... Service "orc11g_XPT" has 1 instance(s). Instance "orc11g", status READY, has 1 handler(s) for this service... The command completed successfully LSNRCTL>
Tnsnames.ora on Linux,tnsping 172.x.x.x TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 11-APR-2013 14:32:17 Copyright (c) 1997, 2005, Oracle. All rights reserved. Used parameter files: /u01/app/oracle/product/11.2.0/db_1/network/admin/sqlnet.ora Used EZCONNECT adapter to resolve the alias Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=172.x.x.x))(ADDRESS=(PROTOCOL=TCP)(HOST=172.x.x.x)(PORT=1521))) OK (0 msec) [oracle@ltebilling ~]$
Listner on Linux,ORC11G = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.x.x.x)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orc11g) ) )
hosts/ect/Linux,SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1) (PROGRAM = extproc) ) ) LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1)) (ADDRESS = (PROTOCOL = TCP)(HOST = 172.x.x.x)(PORT = 1521)) ) )
and there is no problem to ping linux from windows# Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost 172.x.x.x LTEBilling
Published by: user11309581 on April 11, 2013 15:16user11309581 wrote:
as I have already desciped earlier, I can't connect to the server throw Linux my Windows SQL Server, with error message below.
tatus: failed - Test has failed: the network adapter could not establish the connectionIt's too generic to mean anything. The application is hidden the real error message. You got when you did the tnsping and obtained "TNS-12535: TNS:operation has expired. Now THAT's an error.
This indicates a problem firewall and routing. You said earlier you could ping the server, but now we see tnsping fails. Two different protocols of usage, so that both the successful ping turns out a valid physical path, it guarantees not that all traffic will pass. What happens with
c:\ telnet 172.x.x.x 1521
-
Connection problem with SQL Developer 3.0.0.4
I have a strange problem with SQL Developer (SD) 3.0.0.4. So that the implementation of a new connection I have in double entries listed for some of the databases listed in my TNSNAMES.ora file. When I try to connect to one of the databases has entered duplicated, I get the following Oracle error:ORA-01034: Oracle not available ORA-27101: Kingdom does not exist SVR4 shared memory error: 2: no files or directory
however, if I try to connect to the same database using SQL * more or TOAD, it works perfectly and TOAD has no duplicates.
At first, I thought maybe that SD has been reading multiple copies of the TNSNAMES.ora so I checked and removed all the duplicate files and set the variable of environment TNS_ADMIN to point to that and the single instance of the TNSNAMES.ora file. Yet once, SQLPlus and TOAD to work fine, but SD is always showing entries twice and always have reported the above error when I try to connect to a database with a duplicate entry. I should mention, I'm able to connect to the database that have only a single entry listed use SD.
If I understand correctly, SD uses JDBC as underlying connection mechanism. Based on this "agreement" I thought that maybe I had a file corrupted in the Java Cache, so I cleared the cache, but I always get errors.
As mentioned, I use SQL Developer 3.0.0.4 with Java 1.6.0_11 (included in the download). In addition, I have installed JRE 1.6.0_24 and I am running Windows XP SP3. Any ideas or suggestions are greatly appreciated.
Craig...Hi Craig,.
Or, if I have misunderstood completely the scenario you describe, here's a post on the forum about duplicate entries appear in the drop-down list Alias network when the connection Type is TNS:
Developer SQL 2.1.0.63 TNS name in characters of the connection
This solution involves clean a bad TNSNAMES. ORA file with double score entries to test the death of SID.
-Gary
-
problem with the locking of the data
Hi all
I'm having a problem with the locking of the data.
When I was trying to lock FY12 real periods. We cannot block periods. The consolidation runs perfect and all entities have the status of OK and all levels of the process are published, but when we try locking... We receive an error that "Consolidation, calculations or translations are required.
Published by: user10926115 on October 16, 2012 10:34We had this problem with our application, as well. I don't know what causes it, but I can advise on our solution.
In your grid lock, change your Value [None] member. Bear has the value
and shows that all entities are in a State of OK or OK SC. However, when we go to the [none] member value, we see that some entities still need calculation. Select the groups that aren't in an OK OK SC or ND OK and select 'calculate '. Once solve us this problem in the [None] member value, we have no problems with locking or unlocking of these entities for periods that have been addressed. I would like to know if it works for you.
Also, if someone else may be able to weigh in on the root of this problem, it would be certainly appreciated by more than just the op.
Thank you!
Scott -
Problem with the report and the system of axis 2d
Hi, I'm trying to write a script with tiara, who wrote a 2d axis system in the report but I'm having a lot of problems with it.
What I'm trying to do, is make 3 or more system axis 2d in the report, each displaying a part of the data of 2 channels (x = ch0, ch1 = y).
With only 1 graphic I get what I want, but when I try to add the 2nd or the 3rd, they show without my defined x-scale and with the offset x different from the first chart.
I tried everything, but I could not remedy
I added as attachments the .csv file that I use to ch0 and ch1 and 2 screen shoots "what I get" (about the problem with the script) and "what I hope to get" (done manually, is what I'm trying to get the report)
Any help will be appreciated, thanks in advance
Ierman
I'll post my code here:
Dim Xscale, Yscale
XScale = Array (0,25,0,5,49)
Yscale = Array(-0.2,0.2,-0.2,10,4)
Call PicDelete()
Call GraphObjNew ("2D-Axis", "2DAxis1")
Call GRAPHObjOpen ("2DAxis1")
D2AxisTop = 1D2AxisBottom = 70
D2AxisLeft = 1
D2AxisRight = 1
Call GRAPHObjOpen ("2DYAxis1_1")
D2AxisyScaleType = "manual".
D2AXISYBEGIN = Yscale (0)
D2AXISYEND = Yscale (1)
D2AXISYORIGIN = Yscale (2)
D2AXISYTICK = Yscale (3)
D2AXISYMINITICK = Yscale (4)
Call GRAPHObjClose ("2DYAxis1_1")
Call GRAPHObjOpen ("2DXAxis1_1")
D2AxisxScaleType = "manual".
D2AXISXBEGIN = Xscale (0)
D2AXISXEND = Xscale (1)
D2AXISXORIGIN = Xscale (2)
D2AXISXTICK = Xscale (3)
D2AXISXMINITICK = Xscale (4)
D2AxisXTxt = ""D2AxisXColor = 'black '.
D2AxisXTickAuto = 1
D2MTickLineWidth (1) = 0.1
D2MTickLineType (1) = "solid".
D2AxisXTickSize = 60
D2AxisXTxtAutoCo = 0
D2MTickColor = "red".
Call GRAPHObjClose ("2DXAxis1_1")
Call GraphObjNew("2D-Curve","New_Curve")Call GraphObjOpen ("New_Curve")
D2CCHNX = "[1] / [1]" "
D2CCHNY = "[1] / [2]" "
D2CurveColor = "red".
Call GraphObjClose ("New_Curve")
Call GRAPHObjClose ("2DAxis1")Dim Xscale1, Yscale1
Xscale1 = Array (25,50,0,5,49)
Yscale1 = Array(-0.2,0.2,-0.2,10,4)
Call GraphObjNew ("2D-Axis", "grafic")
Call GRAPHObjOpen ("grafic")
D2AxisTop = 40D2AxisBottom = 37
D2AxisLeft = 1
D2AxisRight = 1
Call GRAPHObjOpen ("2DYAxis1_2")
D2AxisyScaleType = "manual".
D2AXISYBEGIN = Yscale1 (0)
D2AXISYEND = Yscale1 (1)
D2AXISYORIGIN = Yscale1 (2)
D2AXISYTICK = Yscale1 (3)
D2AXISYMINITICK = Yscale1 (4)
D2AxisYTxt = "" ' testo asse label y
Call GRAPHObjClose ("2DYAxis1_2")
Call GRAPHObjOpen ("2DXAxis1_2")
D2AxisxScaleType = "manual".
D2AXISXBEGIN = Xscale1 (0)
D2AXISXEND = Xscale1 (1)
D2AXISXORIGIN = Xscale1 (2)
D2AXISXTICK = Xscale1 (3)
D2AXISXMINITICK = Xscale1 (4)
D2AxisXTxt = «»D2AxisXColor = 'black '.
D2AxisXTickAuto = 1
D2MTickLineWidth (1) = 0.1
D2MTickLineType (1) = "solid".
D2AxisXTickSize = 60
D2AxisXTxtAutoCo = 0
D2MTickColor = "red".
Call GRAPHObjClose ("2DXAxis1_2")
Call GraphObjNew("2D-Curve","New_Curve1")Call GraphObjOpen ("New_Curve1")
D2CCHNX = "[1] / [1]" "
D2CCHNY = "[1] / [2]" "
D2CurveColor = "red".
Call GraphObjClose ("New_Curve1")
Call GRAPHObjClose ("grafic")Hi lerman,.
Here is an edited version of your code that works on my computer. A problem that I know that I fixed it was that your presentation of the STATE was in the name-oriented mode but you use the variables based on the number to assign it X and Y channels. The execution of these commands in a loop FOR makes it much easier to debug the code and to avoid any annoyance at first.
Brad Turpin
Tiara Product Support EngineerNational Instruments
-
Hi s/n,.
I am facing problems when loading the dates in the database by using sql loader. My data file can have several date formats, so I have a function that interprets date and removes the time settings and the date of return.
Something like that.
For example:
I have a table-
CREATE TABLE TEMP1234
(
IDENTIFICATION NUMBER,
DATE OF ASOF_DATE
);
Data file
10001172 | 09/12/1945
Control file:
OPTIONS (DIRECT = TRUE, SILENT (FEEDBACK) =, skip = 0)
DATA RELATING TO SUNK COSTS
REPLACE
in the temp1234 table
' fields completed by "|" possibly provided by ' "'
TRAILING NULLCOLS
(ID,
ASOF_DATE "decode (: ASOF_DATE, null,:ASOF_DATE,conv_date1(:ASOF_DATE))).
)
Function CONV_DATE1:
FUNCTION to CREATE or REPLACE conv_date1 (p_str IN VARCHAR2)
DATE OF RETURN
IS
RETURN_VALUE DATE;p_str1 VARCHAR2 (15): = NULL;
FmtArray TYPE IS a TABLE OF VARCHAR2 (30);
g_fmts fmtArray
: = fmtArray ("yyyy-mm-dd",
"yyyy/mm/dd"
mm/dd/yyyy"."
"dd-mm-yyyy",
"dd/mm/yyyy",
"mm-dd-yyyy");
BEGIN
p_str1: = SUBSTR (p_str, 1, 10);BECAUSE me in 1... g_fmts. COUNTY
LOOP
BEGIN
return_value: = TO_DATE (p_str1, g_fmts (i));
EXIT;
EXCEPTION
WHILE OTHERS
THEN
NULL;
END;
END LOOP;IF (return_value IS NULL)
THEN
RAISE PROGRAM_ERROR;
END IF;RETURN Return_value;
END;
/In this case, if the year in the data file shown in 1945, date which is load in the poster 2045 database.
But when I run this function by putting a sql editor - it returns the correct value.
Select double conv_date1('12/09/1945');
Please help me understand what is causing the problem.
I think there may be an implicit conversion going on with the combination of decode and checking nvl and function within SQL * Loader. I put the nvl checking in function and simply use the function in the control file, as shown below.
OPTIONS (DIRECT = TRUE, SILENT (FEEDBACK) =, skip = 0)
DATA RELATING TO SUNK COSTS
REPLACE
in the temp1234 table
' fields completed by "|" possibly provided by ' "'
TRAILING NULLCOLS
(ID,
asof_date ' conv_date1 (: asof_date).
)
FUNCTION to CREATE or REPLACE conv_date1 (p_str IN VARCHAR2)
DATE OF RETURN
IS
RETURN_VALUE DATE;
p_str1 VARCHAR2 (15): = NULL;
FmtArray TYPE IS a TABLE OF VARCHAR2 (30);
g_fmts fmtArray
: = fmtArray ("yyyy-mm-dd",
"yyyy/mm/dd"
mm/dd/yyyy"."
"dd-mm-yyyy",
"dd/mm/yyyy",
"mm-dd-yyyy");
BEGIN
IF p_str IS NULL
THEN RETURN NULL;
ON THE OTHER
p_str1: = SUBSTR (p_str, 1, 10);
BECAUSE me in 1... g_fmts. COUNTY
LOOP
BEGIN
return_value: = TO_DATE (p_str1, g_fmts (i));
EXIT;
EXCEPTION
WHILE OTHERS
THEN
NULL;
END;
END LOOP;
IF (return_value IS NULL)
THEN
RAISE PROGRAM_ERROR;
END IF;
RETURN Return_value;
END IF;
END;
/
-
Problem with the 4.1 vsphere data migration tool.
Hello
I guess that's the problem with trying to be an early adopt.
I'm trying to upgrade my environment to vSphere 4.1. My old VC was 32 bits with a local SQl 2005 express (it's a lab - I don't want the full SQL version blown).
I re isntalled on a x 64 2008 R2. No, it's fine. But empty... no license or anything like that.
The docs say you can use the data migration tool to move the DB and config.
I followed the instructions and after backup.bat running I get the following error:
DB logs: HResult 0 x 2, level 16, State 1
Named channel provider: could not open a connection to SQL Server .
Sqlcmd: Error: Microsoft SQL Native Client: an error has occurred while
establishing a connection to the server. When connecting to SQL Server 2005, th
rupture may be caused by the fact that under the default settings SQL Server
does not allow remote connections...
Sqlcmd: Error: Microsoft SQL Native Client: login timeout expired.
Error: failure of vCenter Server DB backup
FYI, yes connections allow, is named pipes, sql browser started. Former VC works very well. The ODBC test OK. Running local and connected system as a local administrator. Tried running SQL express under the same admin account. Still broken.
Very well, I can connect with:
sqlcmd - s. \SQLEXP_VIM
and
osql /Snp:
.\pipe\MSSQL$SQLEXP_VIM\sql\query EISo he has set up the right and listen...
Only thing I noticed is that the papers say:
vCenter Server DB instance:
so it's not 'list in fact an instance...
So I'm stuck. Any ideas?
Thanks in advance
Found the solution in this article:'t-work-hresult-0x2-level-16-state-1/ http://digitalformula.net/technical/sqlcmdexe-on-sql-2008-doesn
-
Hello
I have problems using SQL Loader with ODI. I am filling an oracle table with data from a txt file. Initially, I had used 'File to SQL' LKM, but due to the size of the file (700 MB) source, I decided to use 'file to Oracle (SQLLDR)' LKM.
The error that appears in myFile.txt.log is: "SQL * Loader-101: invalid argument for the name of user and password.
I think the problem might be in the definition of the database server (physical JavaBeans in topology), because I left empty Host, user and password.
What is the problem? What host and user should I use? With "File to SQL" works fine living that white, but takes too much time.
Thanks in advanceNote the last * @*. He expects a connection string after him.
So, goto Oracle server topology, specify Instance/Dblink (server) as the SID of the oracle database you want to connect.
-
Problem with SQL Developer to capture
Hi guys,.
I am facing a problem for the last 4 days with SQL Developer. I use to migrate sql database to oracle SQL Developer. It worked well before and I had migrated some tables as well. But all of a sudden a few days before I had a mistake, I was unable to capture the objects. While I am trying to capture the sql database or the tables the progress dialog box is displayed as usual, but he suddenly gets hit and the green light turns red which is in the upper left corner. Said at that time, the progress message that appears at the bottom of the box +' stored jdbc:jtds:sqlserver: / / < hostname >: < port > / < the database name > ' +. But if I use another oracle server, then I can capture objects.
Because of this error, I'm not able to go forward. I tried to solve this problem in many ways. But nothing helps! Please help me solve this problem, as it's an emergency.
Thanks in advance.
RAM.
Published by: Ram Dhilip on March 22, 2010 08:16
Published by: Ram Dhilip on March 22, 2010 08:16
Published by: Ram Dhilip on March 22, 2010 08:19
Published by: Ram Dhilip on March 22, 2010 08:34You can use the method of capture in offline mode:
Click on tools-> Migration-> third party database offline Capture-> Capture database creation scripts
Now select the output directory of these scripts and the source database. Also, make sure that you have selected the Batch mode. Once this is done, copy all scripts on a computer with an installed SQL Server client or perform the export on the SQL Server computer directly.
Run the script and you'll get 2 directories with a couple of DAT files created. ALL switch to SQL Developer machine and load them into the SQL Developer
Click on tools-> Migration-> third party database offline Capture-> Capture Script output load of database -
Problem with table/table and past data capture
Hi all
Newbie is back and I have a problem with my program.
A brief introduction of what I'm trying to do.
I'll show you a failure to a system event.
Based on each event, I will need to connect the error description, the tag, the fault start time and duration.
All the event information will be displayed on the front table and this table will increase when new event occurred.
For descriptions and tags - this is fixed based on what fault affects, respectively.
The issue I'm having is to capture time.
What I have in mind is to use the time to enter the start time and duration also.
Departure time is not question because once I press boolean = true, it gives the start time.
For the duration, when I press boolean = false, it wil give the total duration.
However, I have a problem as follows:
(1) to capture what a comprehensive data set (for example / / Desc: fault 1, Tag: one, start time: 2008-12-16 11:15:06 duration: 0 00:00:05) and it passed inside the trap fault Table.
(2) if the same failure has occurred, it will overwrite the latest information. However, I need to keep the display of old and new events.
Please notify.
Opinions and suggestions are welcome mosssssst.
Hi Roziela,
Thanks for the post and I hope that your well today.
You must add logic to detect the change of the event (no fault to fault) and produce a Boolean result by 'raising' edge.
I have a code to do this,
Let me know what you think,
-
problem with access to the image data after you have installed latest windows
Hi, my name s mayur, I got the problem when I open my photos data, actuly I have a computer laptop sony vaio there and I m a photographer so usually I saved my data in my vista drive was slove, so I upgraded mwan Formate c drive and install windows 7 in there then when I cheack my image data in f drive I cant able to see the thuumbs when I open it in the windows image viewer He told me i dnt have the permission to access
I did this solutions
I changed my user to administrator - has not worked
I changed the security settings and gives full control to user - does not work
I've changed owner ship - does not work, I reinstalled vista - not worked
I used hodden administrator - has not worked
I have attached the HDD in the pc of windows genuen - has not worked
I opened my hard drive under linux and not workedI am a hardware engineer also so can someone tell me what will be the reson when I cheak the propertese folder there are a few user (s16561613) with red qustion mark in the authenticated user, my laptop has a genuien windows and now I have installed the windows is not genuine and I dnt have the original windows. so is this problem related to the license... or is the problem of pricing to someone please help me... the security and
Hello
There will not be any support for a pirated copy of Windows. I suggest you install a genuine Windows 7 on the computer and test the issue. If you face the same problem let us know so that we can help you further.
Reference:
Windows Genuine
-
Problems with views. When no data I have to delete and recreate it
Hi all.
I have a problem with views. From time to time I can't see the data from the query, and I have to file the notice and then create it again, after that it works.
Any idea?
Best regards
Hello.
The benefits of joining is correct.
-
Performance problem with SQL for recovering data in FACT and Dimension Table
Hello
We have a query that performs very slow when extracting data in FACT and the DIMENSION Table.
SQL and Plan are in the attachment.
Please suggest how this can be improved.
The version of DB is 11.2.0.4
Kind regards
VN
Slow is a very relative term, for about 1 hour is slow for some 1s is slow. So please always quantify your settings.
The first thing caught my eye is done 4 times ia_oasis_tot_prov_cur_d access. Try to isolate which and change it like this and see if it returns the same result.
select case when a.clm_capitn_ia_bil_prov_edw_sk = b.prov_edw_sk then b.prov_id end ben_billing_prov , case when a.clm_capitn_attnd_prov_edw_sk = b.prov_edw_sk then b.prov_id end ben_attending_prov , case when a.clm_capitn_ia_pcp_edw_sk = b.prov_edw_sk then b.prov_id end ben_pcp_number , case when a.clm_capitn_ia_ipa_prov_edw_sk = b.prov_edw_sk then b.prov_id end ben_ipa_number from edw.clm_capitn_f partition (jan2015) a left join edw.ia_oasis_tot_prov_cur_d b on ( a.clm_capitn_ia_bil_prov_edw_sk = b.prov_edw_sk or a.clm_capitn_attnd_prov_edw_sk = b.prov_edw_sk or a.clm_capitn_ia_pcp_edw_sk = b.prov_edw_sk or a.clm_capitn_ia_ipa_prov_edw_sk = b.prov_edw_sk )
If it works this means allows you to reduce certain I/O.
-
Problem with output report layout
Hi friends,
This isn't problem Oracle D2K. ;)
I did a report in Oracle PL/SQL. And, when I spool the data he fragments he came out in several lines. Despite I took in charge of the issues.
Now, let me explain->
I used a function in pipeline and store the result using the command of the coil.
What I found strange, this is the type of object that is a clob data type is split in fact lines after 80 characters as in the case of string, it continues to 4000 characters.
Now, in my solution, ordering channels made big role as all the lines indicate a different meaning and so pinched the data accordingly.
I did a small test in that regard, and I am paste here that - because I am not allowed to post here my original due to the policy of the company code.
Why is this it is break line after 80 characters? Alternatively, where I'm missing?scott>select * from v$version; ----------------------------------------------------------------------------------------- Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod PL/SQL Release 10.2.0.3.0 - Production CORE 10.2.0.3.0 Production TNS for 32-bit Windows: Version 10.2.0.3.0 - Production NLSRTL Version 10.2.0.3.0 - Production Elapsed: 00:00:00.18 scott> scott>create table clob_dummy 2 ( 3 cola clob 4 ); Table created. Elapsed: 00:00:04.40 scott> scott>insert into clob_dummy values('&clb'); Enter value for clb: Enter value for clb: gfhjtuioep mnhjkie rt-hlospd. ngktio pokdnebtt, gkhohphpdj dbs wmqksxnd - kfnfdkdldkdkdkdkdkdkdkdkdbdsjgdvj h geg.jv ehh shgghsga wshkwlsgsdklghlahgkh lahgkas lhks kglaks gksh a old 1: insert into clob_dummy values('&clb') new 1: insert into clob_dummy values('Enter value for clb: gfhjtuioep mnhjkie rt-hlospd. ngktio po 1 row created. Elapsed: 00:00:00.08 scott> scott>commit; Commit complete. Elapsed: 00:00:00.01 scott> scott>select * from clob_dummy 2 ; COLA -------------------------------------------------------------------------------- Enter value for clb: gfhjtuioep mnhjkie rt-hlospd. ngktio pokdnebtt, gkhohphpdjd Elapsed: 00:00:00.27 scott>set long 400000 scott> scott>set lin 2000 ---- As you can see i've set the linesize to 2000 scott> scott>set serveroutput on scott> scott> scott>select * from clob_dummy; COLA -------------------------------------------------------------------------------- Enter value for clb: gfhjtuioep mnhjkie rt-hlospd. ngktio pokdnebtt, gkhohphpdjd bs wmqksxnd - kfnfdkdldkdkdkdkdkdkdkdkdbdsjgdvj h geg.jv ehh shgghsga wshkwlsgs dklghlahgkh lahgkas lhks kglaks gksh a Elapsed: 00:00:00.11 scott> scott> scott>select length(cola) res from clob_dummy; RES ---------- 199 Elapsed: 00:00:00.08 scott>insert into clob_dummy values('&clb') 2 ; Enter value for clb: ssjfsjgskjhghsgskgkksl hgeldhldlkskhdlk dklhkdlkhlkdlhdkfhldkhkhdkhkdhkdhkdkhkl hkddkhdkhdkl djhlkdkhdhkshlkd dkhdkhldsjhkslhjd eutywe 398863694 i230e ehgd ehglegighsihdlk eltiweyt ilhdhgehgisehbkd old 1: insert into clob_dummy values('&clb') new 1: insert into clob_dummy values('ssjfsjgskjhghsgskgkksl hgeldhldlkskhdlk dklhkdlkhlkdlhdkfhld 1 row created. Elapsed: 00:00:00.03 scott> scott>commit; Commit complete. Elapsed: 00:00:00.08 scott> scott>select * from clob_dummy; COLA -------------------------------------------------------------------------------- Enter value for clb: gfhjtuioep mnhjkie rt-hlospd. ngktio pokdnebtt, gkhohphpdjd bs wmqksxnd - kfnfdkdldkdkdkdkdkdkdkdkdbdsjgdvj h geg.jv ehh shgghsga wshkwlsgs dklghlahgkh lahgkas lhks kglaks gksh a ssjfsjgskjhghsgskgkksl hgeldhldlkskhdlk dklhkdlkhlkdlhdkfhldkhkhdkhkdhkdhkdkhklh kddkhdkhdkl djhlkdkhdhkshlkd dkhdkhldsjhkslhjd eutywe 398863694 i230e ehgd ehgle gighsihdlk eltiweytilhdhgehgisehbkd Elapsed: 00:00:00.11 scott> scott> ----- Still it is breaking the line after 80 characters.
But when I changed the varchar2 data type, it is good way.
May I know what is the reason? Then I fixed using the clob data type? Or will I have to change to varchar2? Because, I need only single record line (any size is - this - but of course oracle time) when I wrap the output to a file.
Please share your thoughts with me.
Thank you.It may be related to longchunksize SQL layout * more. Have you tried a similar to your set linesize value assignment:
set longc 2000
It can also be bound to the version of SQL * more you use. I notice some differences between sqlplus (command line version) and sqlplusw (the windows gui version)
-
The problem with SQL after the migration of the database to another machine
Having a SQL strange problem trying to extract a database being moved from one machine to the other. Both machines are running SQL 2008 32-bit and are both Windows 2008 servers. When I try to backup the database using the SQL tools and restore the. BAK file on the new SQL Server, I get the following error:
Restore failed for server 'servername' (Microsoft.SqlServer.Smo)
Additional information:
System.Data.SqlClient.SqlError: RESTORE detected an error on the page (44:2097184) in database 'RestoreDBName' read from the backup set.
Similarly, when I am trying to copy the. MDF and. LDF files to the new server and tie them, I get the following error:
Attach the database failed for the server 'servername '.
Additional information:
An exception occurred during the execution of a Transact-SQL statement or batch.
A system assertion failed. An assertion failure is usually caused by a corruption of data or software bug. To check the database, consider running DBCC CHECKDB. If you have agreed to send images to Microsoft during installation, a mini dump will be sent to Microsoft. An update can be an available from Microsoft in the latest Service Pack or a QFE from Technical Support.
Could not open new database 'NewDatabaseName' create a DATABASE is dropped.
"" Location: "logmgr.cpp": 3277
Expression: lfh-> lfh_startOffset is startOffset
SPID:55
PID: 292876 (Microsoft SQL Server, error: 3624)
Everything I've read, these errors usually indicate some sort of database corruption. However when I run DBCC CHECKDB on the database on the source server, it is up to perfectly don't own... None detected corruption. In fact, this server hosts 8 different databases. Departure from all the correct DB on the source server, none of them will restore however to a new server using one of the methods above. I'm having a hard time to believe that each of them could be corrupted when they show absolutely no indication of a problem.
Anyone have any ideas?Try to make the backup and restore via SQLCMD (or via a query in SQL Server MS window).
The backup will be the following (obviously, change "MaBase" and "D:\BACKUPS" to some database and the location you wish to save - just using for example):
BACKUP DATABASE MyDatabase
TO DISK = 'D:\BACKUPS\MyDatabase.bak. '
WITH NOFORMAT, NOINIT,.
NAME = 'Database MyDatabase - Full Backup',
NOREWIND, NOUNLOAD, STATS = 10, SKIP
Copy your backup to the other server and file make:
RESTORE the DATABASE to MyDatabase
FROM DISK = 'E:\Backups\MyDatabase.bak' WITH FILE = 1,
GO to "MyDatabase_Data" to "E:\SQLDATA\MyDatabase_Data.mdf,"
GO to "MyDatabase_Log" to "E:\SQLLOG\MyDatabase_Data.ldf,"
NOUNLOAD, STATS = 10 REPLACE
Again, change your names and locations in function.
If this does not work, try to restore a database by third-party tools. You can find them in Google. If you don't want to spend the time to research, you can try a tool SQL Server Recovery Toolbox. All the details about this program on the link. http://www.oemailrecovery.com/sql_repair.html
Maybe you are looking for
-
Pavilion dv6 notebook pc: internal error message battery low percentage at primary startup 601
Hi, we have a hp Portable DVD we get a startup message that the internal battery has a low percentage left of pavilions. internal primary 601... I read through some of the questions forum and saw to check the status of the battery I did and he said h
-
Re: Satellite P100-106 PSPADE - replacement for Panel problem
Hello I have a problem with the screen on my model Satellite P100 - 106 PSPADE 018110G 3. I changed the old Panel LG PHILIPS LP171WX2 (A4) (K7) (she has wide stripes without a photo) with the new a LP171WP4 Philips (TL) (B1) and after the first start
-
Siri handsfree works only intermittently after updating iOS 9.2. I have a Mustang from 2015 with my ford touch. Siri handsfree worked perfectly before the update. Now when I use it it disconnects sometimes. Anyone else having the same problem?
-
Error adding programmatically to item to LabVIEW project
I try to add a VI programmatically to a LabVIEW project using ActiveX nodes property/invoke: I get an error message (not as an ordinary LabVIEW error) when the name of the VI contains an underscore (who do a lot of my screws...): -When I try to add i
-
Can I put windows xp starter looking for win7 type file search
In win7 you just put the name of the song at the top when you open the file with over 25,000 songs which is optimal. My laptop (1 GB ram) running windows xp starter edition and when I open my file of the song, the search button has nowhere to write t