The data return based on the length
How can we display data lines based on the length?Published by: 863765 on July 9, 2011 17:51
863765 wrote:
display data based on the length as givenSelect the table where length between merchantname? and?
SELECT MERCHANTNAME COMPANIES WHERE LENGTH (MERCHANTNAME) BETWEEN 5 AND 10
Tags: Database
Similar Questions
-
stream based on its length object
Hello
I have the following pdf file and I can't see the 1 page in Adobe Acrobat Reader. I can see it correctly in any other pdf reader.
I need to create a data flow based on its length (see item 100 and 200), but I could make it work. I followed the specification pdf (page 65), but it does not work.
on page 2, where the length is not an object of reference, everything's fine.
Help, please.
%PDF-1.5
%þ
1 0 obj < < / Type/Catalog Pages 2 0 R > > endobj
2 0 obj < < / type/pages [0 0 595 842] /MediaBox [0 0 595 842] /CropBox /Resources 3 0 R /Kids [010 011 0 R 0 R] count 2 > > endobj
3 0 obj < < / type/resources/make < < /FH 4 0 R /FHB 5 0 R > > > > endobj
4 0 obj < </Subtype/make/type/Type1/Name /FH /BaseFont /Helvetica /WinAnsiEncoding /Encoding > > endobj
5 0 obj < < / type /Type1/Subtype/make/name/Helvetica-Bold/encoding /WinAnsiEncoding /BaseFont /FHB > > endobj
6 0 obj < < AR 205 > > flow
0.5 0.5 0.5 GR BT FHB 14 Tf 55 810 Td (xxx) Tj AND BT 55 795 Td (www.ABC.com) Tj AND BT 421 810 Td (yyy) Tj AND BT 421 795 Td(01/01/2015 12:00:04) Tj AND BT /FH 12 Tf 295 30 Td (/ 1) AND Tj 55 790 m 540 790 l S
EndStream > > endobj
10 0 obj < < / Type/page there 2 0 R /Contents [6 0 R 200 0 100 0 R R] > > endobj
11 0 obj < < / Type/page there 2 0 R /Contents [6 0 R 0 R 101] > > endobj
100 0 obj < < AR 200 0 R > > flow
BT /FHB 14 Tf 235 750 Td (Page 1) Tj AND
EndStream > > endobj
200 0 obj
37
endobj
101 0 obj < < / length 37 > > flow
BT /FHB 14 Tf 235 750 Td (Page 2) Tj AND
EndStream > > endobj
Xref
0 12
0000000000 65535 f
0000000014 00000 n
0000000064 00000 n
0000000198 00000 n
0000000270 00000 n
0000000378 00000 n
0000000492 00000 n
0000000753 00000 n
0000000837 00000 n
0000000913 00000 n
0000001012 00000 n
0000001035 00000 n
trailer
< < / size 12/root 1 0 R > >
startxref
1381
%% EOF
10, used in the summary table on page 1, is not a stream.
-
Enterprise Manager Database Express 12 c - inability to analyze the data returned by the server
I just installed Oracle Database 12 c in two configuration of RAC nodes and must use Enterprise Manager Database Express 12 c. On the first page after the connection, all loading areas but areas, who still has the "loading...". "balloon, and I get this critical error: unable to parse the data returned by the server
Detail:
TypeError: Error #1009
Message:
< report > < / report >
Journal of memory:
0: AppContext(): params = null, bootStrap: true
17: AppContext(): params = [object Object] bootStrap,: false
28: AppContext(): no current report (object) #0
em_express = 'true '.
28: AppContext(): _em_express = true _emx_caching_number = NaN resourceDir = / em/resources
28: AppContext(): localeChain is null, resourceDir = / em/resources
32: NLSResources.setRootUrl (): rootUrl = / em/resources
32: AppContext:createAppContext(): AppContext.execModeem
71: NLSResources.initResource)
143: EMAppicationScript - showPage() page.pageFeature = null, currentPage = null
518: DBUrlNavigator:handleWindowHashChanged(): urlString = https://192.168.56.22:5500/em/shell
519: DBUrlNavigator:navigateToApp(): dbhome/show_regions
523: DBUrlNavigator:setCurrentFeature(): function = dbhome/show_regions urlVariables = null
523: DBUrlNavigator:setCurrentFeature(): the features are different (null however dbhome/show_regions)
524: DBUrlNavigator:gotoFeature(): function = dbhome/show_regions variables =
524: length of pages: 1
524: feature of the page: dbhome/show_regions null
628: EMPageScript initiateRefresh() urlvariables: null
639: DbHomeController.refreshModel (): INST_ID select = null inst_name = null
656: EMAppicationScript - showPage() page.pageFeature = dbhome/show_regions, currentPage = DbHome0.EMApplication18.viewStack.EMLandingPage23
656: EMAppicationScript - showPage() currentPage.pageFeature = null
770: EMBaseController.refreshModel (): enter
770: EMBaseController:refreshModel(): prevRefreshUrlVariables =
771: EMBaseController:loadXmlModel(): reportName: show_regions
779: DBUrlLoader:loadInternal(): loading comp = DbHome rep = show_regions
802: EMBaseController.refreshModel (): enter
802: EMBaseController:refreshModel(): prevRefreshUrlVariables =
802: EMBaseController:loadXmlModel(): reportName: show_regions
806: DBUrlLoader:loadInternal(): loading comp = DbHome rep = show_regions
806: DBUrlLoader:queueLoad(): lines that load
812: EMBaseController.refreshModel (): enter
812: EMBaseController:refreshModel(): prevRefreshUrlVariables =
812: EMBaseController:loadXmlModel(): reportName: show_regions
821: DBUrlLoader:loadInternal(): loading comp = DbHome rep = show_regions
821: DBUrlLoader:queueLoad(): lines that load
828: EMBaseController.refreshModel (): enter
828: EMBaseController:refreshModel(): prevRefreshUrlVariables =
828: EMBaseController:loadXmlModel(): reportName: show_regions
831: DBUrlLoader:loadInternal(): loading comp = DbHome rep = show_regions
831: DBUrlLoader:queueLoad(): lines that load
837: EMBaseController.refreshModel (): enter
837: EMBaseController:refreshModel(): prevRefreshUrlVariables =
837: EMBaseController:loadXmlModel(): reportName: show_regions
842: DBUrlLoader:loadInternal(): loading comp = DbHome rep = show_regions
842: DBUrlLoader:queueLoad(): lines that load
849: EMBaseController.refreshModel (): enter
849: EMBaseController:refreshModel(): prevRefreshUrlVariables =
849: EMBaseController:loadXmlModel(): reportName: show_regions
853: DBUrlLoader:loadInternal(): loading comp = DbHome rep = show_regions
853: DBUrlLoader:queueLoad(): lines that load
2526: DBUrlLoader.onComplete (): success (str = < report db_version = "12.1.0.1.0" inst_count = '2' cpu_cores = '1' Hyperthreaded = "N" con_id = '1' con_name = ' CBD$ ROOT "timezone_offset ="7200"elapsed_time ="1.42"cpu_time ="0.22"packs = '2' encoding ="base64"compress ="zlib"> < report_id > <!) [CDATA [/ orarep/dbhome/show_regions]] > < / report_id > eAFlUk1vWyEQvPtXoFWvNQ/bcnrwe5Lb5FApiqW0PfSEMGxtJAyEjzo/vwvPqRr1
BrOzM7Msu4QxpCKjSuqCBVOeFoztEp5s8HnKRZWad/zt3molROknMez4fGqYOgWZ
5s6sGWEOAEzHKou94AjLlQCGTsWM UQdv8rTeDlT7F2mMfA5XmV, cRLW, 50VT, s.
5gaJ5UZAzz3TmTnK1iwGsb4bxDBQB0GeJh...)
2531: XMLUtil.unCompressBase64Binary (): compress the result = < report_parameters >
status < region > < / region >
< top_n > 10 < / top_n >
< ago_seconds > 3600 < / ago_seconds >
< show_sql > 0 < / show_sql >
< / report_parameters >
< region id = 'status' cpu_time = ".21" elapsed_time "1.41" = >
"< status db_id, db_name ="1013701001"="CLAUDIA"container_name =" CBD$ ROOT ' pdb_cnt = '1' db_unique_name = 'claudia' oracle_home="/u01/app/oracle/product/12.1.0/dbhome_1 ' db_status = 'Open' db_version ="12.1.0.1.0"db_platform_name = 'Linux 64-bit x 86' db_platform_id = '13' db_startup_since_sec = '2471' parallel '2' = inst_cnt ="Yes"archiver = arrΩt"Stopped"=" "active_state = 'Normal' connections 'Authorized' instance_mode = 'Normal' edition = ="EE"/ >
< / region >
2531: XMLUtil.uncompress (): xmlModel after unpacking = < report db_version = "12.1.0.1.0" inst_count = '2' cpu_cores = '1' Hyperthreaded = "N" con_id = "1" con_name = "CBD$ ROOT" timezone_offset = "7200" elapsed_time = "1.42" cpu_time = "0.22" packs = "2" >
< report_id > <! [CDATA [/ orarep/dbhome/show_regions]] > < / report_id >
< report_parameters >
status < region > < / region >
< top_n > 10 < / top_n >
< ago_seconds > 3600 < / ago_seconds >
< show_sql > 0 < / show_sql >
< / report_parameters >
< region id = 'status' cpu_time = ".21" elapsed_time "1.41" = >
"< status db_id, db_name ="1013701001"="CLAUDIA"container_name =" CBD$ ROOT ' pdb_cnt = '1' db_unique_name = 'claudia' oracle_home="/u01/app/oracle/product/12.1.0/dbhome_1 ' db_status = 'Open' db_version ="12.1.0.1.0"db_platform_name = 'Linux 64-bit x 86' db_platform_id = '13' db_startup_since_sec = '2471' parallel '2' = inst_cnt ="Yes"archiver = arrΩt"Stopped"=" "active_state = 'Normal' connections 'Authorized' instance_mode = 'Normal' edition = ="EE"/ >
< / region >
< / report >
2531: DBUrlLoader.reportLoadComplete (): due to loading
2533: EMBaseController:onLoadSuccess():...
2534: EMBaseController:parseXmlModel()
2569: DBUrlLoader:runQueuedLoad(): running another load
3803: DBUrlLoader.onComplete (): success (str = < report db_version = "12.1.0.1.0" inst_count = '2' cpu_cores = '1' Hyperthreaded = "N" con_id = '1' con_name = ' CBD$ ROOT "timezone_offset ="7200"elapsed_time ="1.13"cpu_time = '0.08' packs = '2' encoding ="base64"compress ="zlib"> < report_id > <!) [CDATA [/ orarep/dbhome/show_regions]] > < / report_id > eAHVU11rwjAUffdXhPwAm7ZqtdSA1E32NibsRUapyUULNolJOv35u3HWDfbgyxgM
Ajn3M + fccAsLRltfmdrWLXiwjg8IKSzsGq0cb5RoJCjviqh3hbDXplI8ZkX0iYKv
3unKgdBKOp5OGMa + e0KG2 + tT5Y4HjrEbHoTOPyhcCZBGzumNAyXCdJVvWpjTIZtS
AofaOJBXVzyMU3phf6sIFj7c26RRzlehZ0...)
3804: XMLUtil.unCompressBase64Binary (): compress the result = < report_parameters >
incidents < region > < / region >
< top_n > 10 < / top_n >
< ago_seconds > 3600 < / ago_seconds >
< show_sql > 0 < / show_sql >
< / report_parameters >
< region id = "incidents" cpu_time = ".08" elapsed_time = "1.13" >
<>incidents
< INST_ID select incident '2' = home = "diag/rdbms/claudia/claudia2" id = "7480" pb_id = cdate "1" = "29/07/2013 17:33:54" > exception encountered: core dump [qervwFetch] [SIGSEGV] [ADDR:0 x 5] [PC:0x2CA8CC2] [] [] < / incident >
< INST_ID select incident = '2' home = "diag/rdbms/claudia/claudia2" id = '7479' pb_id = '1' = cdate "29/07/2013-17:32:53" > exception encountered: core dump [qervwFetch] [SIGSEGV] [ADDR:0 x 5] [PC:0x2CA8CC2] [] [] < / incident > "
< INST_ID select incident = '2' home = "diag/rdbms/claudia/claudia2" id = "7767" pb_id = cdate "1" = "29/07/2013-17:30" > exception encountered: core dump [qervwFetch] [SIGSEGV] [ADDR:0 x 5] [PC:0x2CA8CC2] [] [] < / incident > ""
< / incidents >
< / region >
3805: XMLUtil.uncompress (): xmlModel after unpacking = < report db_version = "12.1.0.1.0" inst_count = '2' cpu_cores = '1' Hyperthreaded = "N" con_id = '1' con_name = ' CBD$ ROOT "timezone_offset ="7200"elapsed_time ="1.13"cpu_time = '0.08' packs ="2">
< report_id > <! [CDATA [/ orarep/dbhome/show_regions]] > < / report_id >
< report_parameters >
incidents < region > < / region >
< top_n > 10 < / top_n >
< ago_seconds > 3600 < / ago_seconds >
< show_sql > 0 < / show_sql >
< / report_parameters >
< region id = "incidents" cpu_time = ".08" elapsed_time = "1.13" >
<>incidents
< INST_ID select incident '2' = home = "diag/rdbms/claudia/claudia2" id = "7480" pb_id = cdate "1" = "29/07/2013 17:33:54" > exception encountered: core dump [qervwFetch] [SIGSEGV] [ADDR:0 x 5] [PC:0x2CA8CC2] [] [] < / incident >
< INST_ID select incident = '2' home = "diag/rdbms/claudia/claudia2" id = '7479' pb_id = '1' = cdate "29/07/2013-17:32:53" > exception encountered: core dump [qervwFetch] [SIGSEGV] [ADDR:0 x 5] [PC:0x2CA8CC2] [] [] < / incident > "
< INST_ID select incident = '2' home = "diag/rdbms/claudia/claudia2" id = "7767".
3805: DBUrlLoader.reportLoadComplete (): due to loading
3807: EMBaseController:onLoadSuccess():...
3807: EMBaseController:parseXmlModel()
3866: DBUrlLoader:runQueuedLoad(): running another load
6262: DBUrlLoader.onComplete (): success (str = < report db_version = "12.1.0.1.0" inst_count = '2' cpu_cores = '1' Hyperthreaded = "N" con_id = '1' con_name = ' CBD$ ROOT "timezone_offset ="7200"elapsed_time ="2.32"cpu_time = '0,35' packs = '2' encoding ="base64"compress ="zlib"> < report_id > <!) [CDATA [/ orarep/dbhome/show_regions]] > < / report_id > eAFlTlsOgjAQ/OcUTQ9AEaJfZa/SVLrBGmBrt8TryyIaE / / mlZmxGRPl4pLPfsaC
maFSymYcIy0Md7qyNR8mTqHkFjg11ryRaH4kxzjQEhi6S7N5v4ok + EZPx48JNu + L
K2n + Wz + 2VQy9lnmthrS6Emfsdd2dtcLJJ8ZwSG3dtXr/LGEDe6mch + oFmB5JRQ is
(< / report >...)
6264: XMLUtil.unCompressBase64Binary (): compress the result = < report_parameters >
jobs of < region > < / region >
< top_n > 10 < / top_n >
< ago_seconds > 3600 < / ago_seconds >
< show_sql > 0 < / show_sql >
< / report_parameters >
< region id = 'jobs' cpu_time = ".35" elapsed_time "2.32" = >
< jobs / >
< / region >
6264: XMLUtil.uncompress (): xmlModel after unpacking = < report db_version = "12.1.0.1.0" inst_count = '2' cpu_cores = '1' Hyperthreaded = "N" con_id = '1' con_name = ' CBD$ ROOT "timezone_offset ="7200"elapsed_time ="2.32"cpu_time = '0,35' packs ="2">
< report_id > <! [CDATA [/ orarep/dbhome/show_regions]] > < / report_id >
< report_parameters >
jobs of < region > < / region >
< top_n > 10 < / top_n >
< ago_seconds > 3600 < / ago_seconds >
< show_sql > 0 < / show_sql >
< / report_parameters >
< region id = 'jobs' cpu_time = ".35" elapsed_time "2.32" = >
< jobs / >
< / region >
< / report >
6264: DBUrlLoader.reportLoadComplete (): due to loading
6267: EMBaseController:onLoadSuccess():...
6267: EMBaseController:parseXmlModel()
6306: DBUrlLoader:runQueuedLoad(): running another load
8581: DBUrlLoader.onComplete (): success (str = < report db_version = "12.1.0.1.0" inst_count = '2' cpu_cores = '1' Hyperthreaded = "N" con_id = '1' con_name = ' CBD$ ROOT "timezone_offset ="7200"elapsed_time = '2.20' cpu_time ="0.63"packs = '2' encoding ="base64"compress ="zlib"> < report_id > <!) [CDATA [/ orarep/dbhome/show_regions]] > < / report_id > eAHdXV2PW0lufZ9f0Wnss/p + fyzcHXg9gyAIMh6M1w/BYtGQ27ItjN3ttOSZeH99
Tn3o1uHVpYotOw + bARZrscVLXh4WWcVilZ49bj4/PO5vP68f1582 + 83j7uaHi4tn
j5v324f73c3nzeO7h8dP6/u7zbOrA9F9Yf/w + fb + piyeXYV/Odr6/cPtbnP3cP92
d1N3Bf7GFPeN3YeHP253 / / 3xBn + b/v2De /...)
8585: XMLUtil.unCompressBase64Binary (): compress the result = < report_parameters >
performance of < region > < / region >
< top_n > 10 < / top_n >
< ago_seconds > 3600 < / ago_seconds >
< show_sql > 0 < / show_sql >
< / report_parameters >
< region id = 'performance' cpu_time = elapsed_time ".62" "2.19" = >
< report db_version = "12.1.0.1.0" inst_count = '2' cpu_cores = '1' Hyperthreaded = "N" con_id = '1' con_name = ' CBD$ ROOT "timezone_offset ="7200"elapsed_time ="1.83"cpu_time = '0.52' packs ="2">
< report_id > <! [CDATA [/ orarep/perfpage/main? report_level = Basic]] > < / report_id >
< report_parameters >
< bucket_max_count > 128 < / bucket_max_count >
Basic < report_level > < / report_level >
< show_sql > 0 < / show_sql >
< / report_parameters >
"< target start_time =" 29/07/2013 16:35 ' end_time ="29/07/2013-17:35:51" duration = '3651' bucket_count = '61' bucket_interval = '60' is_rac = 'yes' is_cdb = 'yes' inst_low = '0' inst_high = "100000" / >
< References >
< reference name = "instance" value = "2" / >
< reference name = "NUM_CPU_CORES" value = "0" / >
< name of reference = NUM_CPU «»
8591: XMLUtil.uncompress (): xmlModel after unpacking = < report db_version = "12.1.0.1.0" inst_count = '2' cpu_cores = '1' Hyperthreaded = "N" con_id = '1' con_name = ' CBD$ ROOT "timezone_offset ="7200"elapsed_time = '2.20' cpu_time ="0.63"packs ="2">
< report_id > <! [CDATA [/ orarep/dbhome/show_regions]] > < / report_id >
< report_parameters >
performance of < region > < / region >
< top_n > 10 < / top_n >
< ago_seconds > 3600 < / ago_seconds >
< show_sql > 0 < / show_sql >
< / report_parameters >
< region id = 'performance' cpu_time = elapsed_time ".62" "2.19" = >
< report db_version = "12.1.0.1.0" inst_count = '2' cpu_cores = '1' Hyperthreaded = "N" con_id = '1' con_name = ' CBD$ ROOT "timezone_offset ="7200"elapsed_time ="1.83"cpu_time = '0.52' packs ="2">
< report_id > <! [CDATA [/ orarep/perfpage/main? report_level = Basic]] > < / report_id >
< report_parameters >
< bucket_max_count > 128 < / bucket_max_count >
Basic < report_level > < / report_level >
< show_sql > 0 < / show_sql >
< / report_parameters >
< target start_time = "29/07/2013 16:35 ' end_time = 29/07/20"
8591: DBUrlLoader.reportLoadComplete (): due to loading
8592: EMBaseController:onLoadSuccess():...
8592: EMBaseController:parseXmlModel()
8652: DBUrlLoader:runQueuedLoad(): running another load
141803: DBUrlLoader.onComplete (): success (str =...)
141804: DBUrlLoader.reportLoadComplete (): due to loading
141808: EMBaseController:onLoadSuccess():...
141808: EMBaseController:parseXmlModel()
Thank you
Valentine's day
Hello
I solved the problem by applying the hotfix 16527374.
Valentine's day
-
The internal organisation of DIAdem data returned an error of initialization
Hello.
I have a laptop that is running Windows XP with installed 10.2 DIAdem.
Main problem: tiara does not start. A few seconds after trying to run it I get a message "ERROR" box saying
"The internal organization of DIAdem data returned an initialization error."
Question that might be related: when I connect to the laptop there is an error message saying:
"The DataFinder cannot start to an internal error. (122): failed to open the configuration file! C:\Documents and Settings\
Settings\Application Data\...\my.datafinder< runmode:="" datafinder="" desktop=""> The directory C:\Documents and Settings\
\Local Settings does not exist on the laptop. My first thought was to reinstall just DIAdem. However, when I open Add/Remove Programs tiara is not in the list, so I can't uninstall it. When I just try to run the installer it says I need to uninstall the existing version first.
No idea how I could get DIAdem working again?
(btw this laptop is used for courses etc in our society, so I do not know how this problem occurred. Just that they have not been able to run the tiara on her for more than a year)
Hi such,
in your 1st post you mentioned that you couldn't find tiara in the Add/Remove Programs list.
=> Please look into this list to
or . That's because NEITHER has its own entry in the Add/Remove Programs list. Here you should find DIAdem to uninstall. You should use MSIBlast if the 'normal' Uninstall failed for some reason. If you use MSIBlast, he could not guarantee that everything is uninstalled in the right order. MSIBlast is not updated on the dependencies between the msi files.
You told us that the directory C:\Documents and Settings\
\Local Settings exist on your laptop. If you have a proper installation of XP, it must be there. It is sometimes invisible because of your windows settings. If this is the case please change your windows settings so that you can see the folders system as well. If you found this file, please remove the following folder: "c:\Documents and Settings\
Settings\Application Data\National Instruments\Shared\DataFinder". After that start please DIAdem - a new folder with sub folders 'config' and 'data' are created. If the error is-, then I have only one idea: If your laptop doesn't have hard enough to free up space to manage all temporary files that occurs during an installation - so maybe it's that this message occurs if you start the installed application. The installer itself is not warn about in each case, overloaded virtual machine, e. g. fragmented hard drive, etc.).
Hope that some of my points would help you,
Kind regards
dietfons
-
Everyone sees this warring newspaper system running Windows 8 or Windows Server 2012?
: The embedded controller (EC) data returned when none was requested. The BIOS may try to access the European Community without synchronization with the operating system. These data will be ignored. No further action is necessary; However, you should check with the manufacturer of your computer for an updated BIOS.
Should I just ignore it?
Concerning
Anders Jensen
This message normally appears permanently, if TPFanControl or PFControl is installed and the start-programs-TPFanControl-optional-acpiecnl was not used to disable logging these events...
-
Using Win XP Pro & Media Player 11. Works very well for a long time. Recently, I have problems during extraction.
Album info & track is correct, and he rips it in the right folder (with the names of artist & album as folder names). But the WMP11 database is messed up. The names of the files/tracks are OK, but all the songs are track 0, and all other data such as the name of the album, genre, year and artist are all unknowns. WMP11 does not know the length of the songs. I can change the data, but not the length. How can I fix it?
Hello RHarrigill,
Thank you for your message. It is possible that Windows Media Player 11 database must be damaged. Please follow the steps below:Exit Windows Media Player.Click Start, run, type %userprofile%\Local Settings\Application Data\Microsoft\Media Player, and then click OK.Note Windows Media Player automatically rebuilds the database.If this does not resolve the problem, disable the Windows Media Player database cache files. To do this, follow these steps:If you are running Windows XP, click Start, click Run, type %userprofile%\Local Settings\Application Data\Microsoft and then click OK.Restart Windows Media Player.Note Windows Media Player automatically rebuilds the database.Info received from http://support.microsoft.com/kb/925718Please let us know if it did or did not solve your problem.See you soonEngineer Jason Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.
-
Change the length of a Table column (CHAR data type)
Hi gurus,
SQL > select * from version $ v
BANNER
----------------------------------------------------------------
Oracle Database 10g Release 10.2.0.3.0 - 64 bit Production
PL/SQL version 10.2.0.3.0 - Production
CORE Production 10.2.0.3.0
AMT for Linux: release 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
I need to increase the length of a CHAR of a table data type column (currently it's tank (3) and you want to change to char (4)). Here are more details on the table:-
- Contains more than 20 million lines.
- Table contains several indexes.
- Table is referenced by several tables (about 60 tables) and it refers to several tables (about 3)
- Table has 4 complex triggers. Triggers call procedures and packages.
What I've tried so far
1 disabled all triggers and ran ALTER statement to increase the length. It took hours and did not finish in a reasonable amount of time, even if no error, but it took more than 12 hours.
2 tried DBMS_REDEFINITION package but it does not work with the standard version of Oracle 10 g.
I think to try next
I think same Optics:
Say my name of the existing table is OLD_T1 where the length of column need to increase
-Create a copy (with increased column length) table of OLD_T1, Say NEW_T1
-Move data from in OLD_T1 to the new table NEW_T1
-Lower OLD_T1 (or rename it to OLD_T1_TMP)
-Rename NEW_T1 to OLD_T1
-Create all indexes, triggers, constraints etc..
I wish to confirm, if my approach is correct? Or someone has a better idea to do this?
Please note: I know that the CHAR data type gives the problem but it is an old system and I don't have authority to change the design of database.
Appreciate any comment/suggestion
Thanks in advance
> I mean, can any application break if it depends on fixed-length?
Yes, because the code can be expected completed on the right areas.
-
Where conditional Clause based on the length of the field
Hello people,
I tried to search for this scenario in OTN and not been able to find any success so I will post the question here.
I have two tables - with the detail records and the other being a table of codes. I need to join these two tables based on the code and the length of the code. Let me explain using examples.
Scripts for creating the table and inserts
As you can see that patients * 1001 * and * 1002 * have no codes in the Master table. In this case, I want only the first 3 characters of the ILLNESS_CODES table.create table ILLNESS_CODES(illness_code varchar2(4), illness_description varchar2(100)); create table PATIENT_TB(patient_id varchar2(4), primary_cause varchar2(4)); insert into illness_codes values('B10', 'Flu'); insert into illness_codes values('B30', 'Hepatitis'); insert into illness_codes values('B301', 'Hepatitis A'); insert into illness_codes values('B302', 'Hepatitis B'); insert into illness_codes values('B303', 'Hepatitis C'); insert into patient_tb values ('1001', 'B101'); insert into patient_tb values ('1002', 'B102'); insert into patient_tb values ('1003', 'B30'); insert into patient_tb values ('1004', 'B301'); insert into patient_tb values ('1005', 'B302'); insert into patient_tb values ('1006', 'B302'); insert into patient_tb values ('1007', 'B303'); insert into patient_tb values ('1008', 'B30');
However, for B30, it has a Code and the same for B301, B302 B303 where I would meet the description based on the exact code.
Example of output
Thanks in advance!Patient ID Illness Description ===================================== 1001 Flu 1002 Flu 1003 Hepatitis 1004 Hepatitis A 1005 Hepatitis B 1006 Hepatitis B 1007 Hepatitis C 1008 Hepatitis
SELECT p.*, NVL ( (SELECT illness_description FROM ILLNESS_CODES I WHERE i.illness_code = p.primary_cause), (SELECT illness_description FROM ILLNESS_CODES I WHERE i.illness_code = SUBSTR (p.primary_cause, 1, 3))) FROM PATIENT_TB p;
-
Insert data according to the length of column in table
Hello
If the length of the characters is more than one defined causes error. It's very embarrassing especially when get data dynamically
and our query does not insert information that we expect.
While trying to find the solution an idea came to my mind that, before insertion, so we check that the next data is greater than the specified length
Take only the amount of characters that can be inserted and ignore the rest.
I thought that the query as follows but failed.
Is it possible to insert data up to the amount this column length defined by ignoring the obsolete characters and if the dataSQL> insert into cvDetails(cv_id,objectives) values(9687,substr("Hello",1,3950)); insert into cvDetails(cv_id,objectives) values(9687,substr("Hello",1,3950)) * ERROR at line 1: ORA-00984: column not allowed here
length is less defined length of column, and then insert it as it is?
Thank you in anticipationHello
Do not use double quotes as the string delimiters:
SQL> create table test_nsa (str varchar2(10)); Table created. Elapsed: 00:00:00.88 SQL> insert into test_nsa values (substr('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',1,10)); 1 row created. Elapsed: 00:00:00.08
-
County of SQL based on the length
Results:SELECT LENGTH(site_id), COUNT(site_id) FROM site_data GROUP BY LENGTH(site_id)
1 12
1 of 3
6-11209
7 17519
* (null) 0 *.
I wrote the query above to get the number of a column based on its length. But the problem is that the table has a lot of values null, which is not showing in the results.
Is there something fundamentally wrong with the query? Please help me.
Thank you.Guru wrote:
SELECT LENGTH(site_id), COUNT(site_id) FROM site_data GROUP BY LENGTH(site_id)
Results:
1 12
1 of 3
6-11209
7 17519
* (null) 0 *.I wrote the query above to get the number of a column based on its length. But the problem is that the table has a lot of values null, which is not showing in the results.
Is there something fundamentally wrong with the query? Please help me.
Thank you.
COUNT as defined ONLY charges the non-null instances.
If you want a count, you want to use COUNT (*) in place of COUNT (site_id);
-
createTextField setting width based on the length of the string
I wonder if there is a way to easily calculate how wide to make a textfield you create dynamically with createTextField based on the length of a string that is passed as an argument. In other words, if you know you are going to use the font size, is there a way to know how many pixels you need? Thanks in advance to anyone who can offer assistance.have you looked into "TextField.autoSize?
SPGAnne wrote:
> I wonder if there is a way to easily calculate how wide to make a textfield
> you create dynamically with createTextField based on the length of a
> string passed as an argument. In other words, if you know the police
> size you plan to use, is there a way to know how many pixels you need?
> Thanks in advance to anyone who can offer assistance.
> -
Result of the query restriction based on the length of the field
Hello
I want to restrict the output of the query according to the length of a field (in fact, the length of the contents of a field).
Ex: only those records where the length of the data in a field is more than 20 characters.
Is it possible, can you give some advice on this subject...
Thank youHello
Example:
Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0 Connected as hr SQL> select to_date('16/8/2009 11:21:46','DD/MM/YYYY HH24:MI:SS') from dual; TO_DATE('16/8/200911:21:46','D ------------------------------ 16/08/2009 11:21:46 SQL> select first_name from employees where length(first_name) > 20; FIRST_NAME -------------------- SQL> select first_name from employees where length(first_name) > 10; FIRST_NAME -------------------- Christopher Jose Manuel SQL>
Kind regards
-
divide characters based on the length
How can I split string such as 'HELLO' => 'H' 'E' 'L' "L", "O" using the length
OATTelecom wrote:
How can I split string such as 'HELLO' => 'H' 'E' 'L' "L", "O" using the length
Yes Type cast!
-
Error ORA-12899, even you the length of the data is correct.
Dear all,
I'm getting ORA-12899 problem: value too large for column 'TEST '. "'"' STUDENT'."" NAME"(size: 94, maximum: 79).
Valer'evne you the length of the column 'Name' is less than 79.
Infact I am getting the value of 'Name' of the other database, processing in Java and you try to insert the value in Oracle database with the help of hibernation, the length of the 'name' is located only 60 I checked in Java, before inserting this value.
Even after having inserted the length is only 60 too, I see Oracle. So why Oracle throws this error at the time of the insertion of the value of the "name"?
Any body have an idea on the question, please help.
Thanking you all.AL32UTF8 is a multibyte character set: each character can take up to 4 bytes. So, you have to modify the table definition for this with something like (assuming that the maximum number of bytes would be 320):
alter table student modify (name varchar2(320));
-
Dear team of SQL Developer,
It seems that the calculation of the length of the column in the expected and received recordsets behaves differently in some cases (when stored proc variables are used in the generation of the REF CURSOR, despite the explicit definition of the type of record): the length of the header and the length of the value in the set of records received are truncated to arbitrary length based on the returned value which leads to a false failure of a unit test. I.e. registries are the same in both sets of records, but the test run fails to the comparison of the recordsets because of different length. Please see the screenshot below:
Here's the test case if you need to reproduce the problem/bug in your environment:
1. use the default schema of HR of the Oracle examples package that comes with an 11 g database.
2. change the HR. Table EMPLOYEES with the addition of a new column VARCHAR2 (4000) LONG_LAST_NAME:
ALTER TABLE HR. EMPLOYEES
ADD (LONG_LAST_NAME VARCHAR2 (4000));
Update hr.employees set long_last_name = last_name;
commit;
3. create a PKG_TEST2 package with the source code below in the HR schema:
----------------------------------------------------------------------------------------------------------------------
create or replace PACKAGE PKG_TEST2 AS
TYPE EmployeeInfoRec IS RECORD
(
long_last_name employees.long_last_name%TYPE,
first name employees.first_name%TYPE,
E-mail employees.email%TYPE
);
TYPE EmployeeInfoRecCur IS REF CURSOR RETURN EmployeeInfoRec;
FUNCTION getEmployeeInfo (p_Emp_Id employees.employee_id%TYPE)
RETURN EmployeeInfoRecCur;
END PKG_TEST2;
----------------------------------------------------------------------------------------------------------------------
CREATE OR REPLACE PACKAGE BODY PKG_TEST2 AS
FUNCTION getEmployeeInfo (p_Emp_Id employees.employee_id%TYPE)
RETURN EmployeeInfoRecCur AS
v_EmployeeInfoRecCur EmployeeInfoRecCur;
v_LongLastName varchar2 (4000);
BEGIN
Select long_last_name from v_LongLastName
employees
where employee_id = p_Emp_Id;
--
OPEN FOR V_EmployeeInfoRecCur
V_LongLastName SELECT long_last_name,
first name,
E-mail
This_is_very_long_table_alias employees
WHERE employee_id = p_Emp_Id
order by 1 CSA;
--
RETURN v_EmployeeInfoRecCur;
EXCEPTION
WHILE OTHERS THEN
LIFT;
END getEmployeeInfo;
END PKG_TEST2;
----------------------------------------------------------------------------------------------------------------------
4. create a unit test for the PKG_TEST2.getEmployeeInfo stored procedure: (click the command create Test, select the stored procedure, click Ok for the pop-up message, click Next, click Finish).
5. update the default value of dynamic query of value with the one below and save/post changes.
Select the cursor)
SELECT long_last_name,
first name,
E-mail
Employees
WHERE employee_id = idqry.employee_id
order of the 1 CAD
) RETURNS $,.
idqry.employee_id as P_EMP_ID
from (select employee_id
employees
where rownum < = 5) idqry
6. run the unit test newly created in the debug mode to display the shot.
Thus, the record type 'EmployeeInfoRec' in the package clearly defines the LONG_LAST_NAME as VARCHAR2 (4000) through reference for the data type of column in the referenced table.
But for some reason, the SQL Developer does not calculate correctly its length in the recordset "Receipts" If a variable is used (could be one as variable simple varchar2 in this reproducible test or complex variable of type of the object).
Any ideas on that? Looks like another bug...
Thank you
Val
The bug has been reproduced by the SRB and documented within the system of Support of Oracle SQL Developer team to pick it up:
Bug 19943948 - TEST UNIT RETURNS EXPECTED ERROR: [LONG_LAST_NAME
Hope the bug name can later be changed to something more descriptive, but it is not really... my only concern is the speed at which the known bugs would be fixed...
Thank you
Val
Maybe you are looking for
-
HP Pavilion dv7-3067nr does not start
My laptop does not start. Screen remains blank. All the lights are on. Numlock and caps lock will Flash twice. I removed the battery, memory, HD and all the accessories. same mistake.
-
Can not find the drivers for Satellite M30 842
Hello I'm a repair technician, and I'm repairing a European model Satellite with Windows corrupted; I reformatted and I install Windows with my generic Windows XP Home CD. I have had no luck finding the drivers for (as listed in the Device Manager):
-
Radio Shark no audio with El Cap - fixed!
Just thought I would post a fix if anyone out there still has a Radio (by Griffin) shark and lost audio when the upgrade to El Cap. Some information. After the upgrade to El Cap, I found that my audio Radio Shark had disappeared. The Radio Shark entr
-
DLL, interfacing with which coexist value and reference types
Currently, I'm working with a supplied DLL. I have header files and everything and the DLL import wizard does a decent job of importing DLL functions but there are certain types of data that cannot simply be dealt with. The DLL requires the use of a
-
How to remove a name from the Hotmail contact list
I removed my Hotmail contact list name, but it is always on my list of the alphabet. How he remove it from this list? Original title: super break