Where is DCA (Solaris 10)??
Hi,
I downloaded and installed Solaris 10 "u1" from Sun's website, and it's kind of working.
However, since installing Solaris, I cannot access DCA. When it boots, the GRUB screen is displayed, and pressing ESC doesn't do anything either before or after that.
Also, on my CD2-4, there is no "d1_image", in the "Tools" directory, so I can't even create a bootable DCA floppy.
I've seen some messages about this, but no real answers.
Can anyone tell me how do I access DCA with Solaris 10?
Thanks,
Jim
Jim,
It took me a while to dig out the information I knew was out there.
I had misplaced whatever crib sheets I had printed.
I just knew I'd found a way to create the diskette when I needed one a few months ago.
(had not saved any bookmarks on the topic until today)
First, the Solaris x86 FAQ is a good read; long, but good.
Occasionally the info is dated but it's all a learning process, right?
See section 4.11for ...
"How do you create a Device Configuration Assistant (DCA) Diskette in DOS/Windows?"
http://www.sun.drydog.com/faq/s86faq.html#4.11
That will get you to this link at BigAdmin:
http://www.sun.com/bigadmin/hcl/drivers/dca_diskettes/
where you can find some diskette images.
Similar Messages
-
Where to download Solaris for Intel ?
Hi
I would like to download Solaris for intel so i can learn and understand it more, i'm in a foreign country and paying to get the CD is not easy , that's why i want to download it , any url ? from where i can dowload ?
ThanxYou can't get the Intel edition anymore. Only SPARC. Sorry... Sun decided to not support Intel anymore. I can sort of understand why though.
-
How to find out if I have Solaris v11.0 or v11.2? Where is 64bit Solaris?
How can I find out if I have Solaris v11.0 or v11.2 installed?
Does Solaris "2010.11" mean Solaris 11 or Solaris 10?
Assume I have installed Solaris 10 or Solaris 11.0:
Can I update Solaris with the integrated Update Manager to Solars 11.2 or do I have to install a new Solaris 11.2?
Finally when I go to Solaris 11 download web page
http://www.oracle.com/technetwork/server-storage/solaris11/downloads/install-2245079.html
I miss a x64bit Solaris download link.
I found only an x86 version (which means 32bit for Intel CPUs)
Thank you
PeterThere are two places to look for versioning information:
$ uname -v
That will return 11.0, 11.1, 11.2 etc
Strictly speaking that is only the kernel version but unless you do "very advanced" things with packaging it is acurrate.
$ pkg info entire
That will get you information about which SRU (patch) level you are at.
As for 64 bit that is the 64 bit version. For Solaris the term "x86" means Intel/AMD compatible processor. Solaris 11 only boots on 64 bit SPARC and Intel/AMD processors.
Since Solaris 7 there has been support for running both 32 bit and 64 bit applications on a 64 bit kernel. Solaris 11 only delivers a 64 bit kernel for all supported processors. -
Where is old Solaris 10 update!!
Hi Everyone,
I have a valid contract and can open Oracle Support tickets but I'm not able to download Solaris 10 update 8?
I searched in the forum and some people are saying that I have to contact my local support to get the old update!
is this true? Why I can't just download it online !?
This is also for patches, I can't download old recommend cluster patches.Hi.
Select seach criteria:
Product - Solaris 10 Operating system
Type - Patch Set
Seach results:
Patch Solaris 10 5/08 SPARC Bundle: Solaris 10 05/08 (Update 5) Patch Bundle for Solaris 10 SPARC (Solaris Operating System patches only)
Patch Solaris 10 5/08 x86 Bundle: Solaris 10 05/08 (Update 5) Patch Bundle for Solaris 10 x86 (Solaris Operating System patches only)
Or seach by patch name:
Solaris 10 5/08 SPARC Bundle
Solaris 10 5/08 x86 Bundle
It's realy Solaris Media, not patches to Solaris.
Regards. -
Where to get solaris on intel media
Please tell me how i will get INTEL version of solaris 7 or 8 ,what i have to do fir that, and can i get that INTEL solaris CD's evaluation copy (say for 30 or 60 days) or can i get that CD for free?
pls reply me back asap.
my mail id is [email protected]Start here
. Solaris 8 (licences) are free. Order a media-kit for the latest release (Jan/2001) or
download the previous solaris 8 release (Oct/2000). -
Where is the Solaris 10 Encryption Kit located for downloading?
The link on the Downloads section doesn't work. Says something about this catalog doesn't list free downloads and prompts me to go back to the Download Center home and reselect the free downloads....
Can't find any pointers to this package so that I can download it.
Thanks,
johnlAre you using Firefox, etc, instead of IE? the download center and Firefox sometimes get confused for me.
The link I found was the following, you'll need to log in and accept the license agreement:
http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=8&PartDetailId=Sol10-GA-Encryption-G-F&TransactionId=try -
Solaris volume manager -- where?
Where is the solaris volume manger for solaris 10 located?
On what disk?
Can I download it?$ pkginfo | grep -i volume
system SUNWdthev CDE HELP VOLUMES
system SUNWdthez Desktop Power Pack Help Volumes
system SUNWmdar Solaris Volume Manager Assistant (Root)
system SUNWmdau Solaris Volume Manager Assistant (Usr)
system SUNWmdr Solaris Volume Manager, (Root)
system SUNWmdu Solaris Volume Manager, (Usr)
system SUNWvolr Volume Management, (Root)
system SUNWvolu Volume Management, (Usr)
$
bbr -
How to increase disk size in solaris
Hi all
I have two disk c1t0d0s0 / c1t0d0s7
I do haven't space in disk /dev/dsk/c1t0d0s0
run df -h
/dev/dsk/*c1t0d0s0* 8,8G 7,4G 1,3G 86% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 3,4G 984K 3,4G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
8,8G 7,4G 1,3G 86% /lib/libc.so.1
fd 0K 0K 0K 0% /dev/fd
swap 3,4G 72K 3,4G 1% /tmp
swap 3,4G 40K 3,4G 1% /var/run
/dev/dsk/*c1t0d0s7* 20G 21M 20G 1% /export/home
I want increasing the space in c1t0d0s0. when I installed Solaris 10 I do not looked attentively the size allocated
ThanksHi,
As I understand, you want to increase the size of the root partition (where you installed Solaris) which resides in c1t0d0s0. I think it can be done using Concatenations from Solaris Volume Manager (SVM).
I have tried it in non root partition like /export/home and it is very easy.
metainit -f d0 2 1 c1t0d0s7 1 c2t0d0s7 //this will create volume d0 as a concatenation
growfs -M /export/home /dev/md/rdsk/d0 //this will grow the /export/home partition
Regards,
Rei -
Solaris 10 update 6 keeps generating core file (/core)
I wonder if somebody has encountered the following issue.
I did a fresh install of Solaris 10 update 6 on two servers (T5140 and T524) from DVD.
I noticed that a core file was in the root filesystem (/core).
So, I deleted it.
As soon as I delete the core file, another one is generated.
This is happening on both servers where I installed Solaris 10 update 6 from the DVD.
This is not a live update install. Solaris was installed from scratch. When prompted to preserve previous data, I replied with 'do not preserve data'
Does anybody know where the core file is coming from and how to stop it being generated?
Found out that is coming from vold
SunOS b1osdtsun02 5.10 Generic_137137-09 sun4v sparc SUNW,T5240
# more /etc/release
Solaris 10 10/08 s10s_u6wos_07b SPARC
Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 27 October 2008
# mdb /core
Loading modules: [ libsysevent.so.1 libnvpair.so.1 libc.so.1 ld.so.1 ]
::statusdebugging core file of vold (32-bit) from b1osdtsun02
file: /usr/sbin/vold
initial argv: /usr/sbin/vold -f /etc/vold.conf
threading model: multi-threaded
status: process terminated by SIGSEGV (Segmentation Fault)
::stacklibc.so.1`strlen+0x18(408450a5, 0, 0, 88b70, 600, 180)
read_slices+0x114(874a0, b, 889a0, feeafd34, 1, 5)
read_hsfs_partition+0x88(b, 46c00, 6d0000, 2c, 34400, 1010101)
read_partition+0x30(874a0, 341a4, 3, 34000, 34400, 9)
create_top_partition+0x140(7cbe0, 7cc24, 7cbe0, 874a0, ffffffff, b)
0x265e0(800012, feeaff9c, c, 598e0, 7cbe0, ffffffff)
create_medium+0x74(800012, feeaff9c, 20, 12, 47800, c)
0x2232c(5d278, 0, 0, 800012, 20, 33000)
libc.so.1`_lwp_start(0, 0, 0, 0, 0, 0)
>
#It seems that vold is failing to mount the DVD on both servers after Solaris was installed.
Is this a Solaris 10 update 6 bug?
Edited by: shen on Jan 29, 2009 8:45 PMNever mind.
It is a known bug documented on manual " [Solaris 10 10/08 Release Notes, Chapter 2 Solaris Runtime Issues|http://docs.sun.com/app/docs/doc/820-5245/chapter2-1000?a=view] " as shown below.
The solution is to apply vold patch [138130-01|http://sunsolve.sun.com/search/document.do?assetkey=1-21-138130-01-1].
Solaris 10 10/08 DVD Media Might Not be Automatically Mounted by vold (6712352)
The Solaris 10 10/08 DVD does not mount by default during runtime. No error message is displayed.
Workaround: Perform the following steps:
1. Become superuser.
2. Disable vold:
* On Solaris 10 Systems:
# svcadm disable -t volfs
* On Solaris 8 and Solaris 9 systems:
/etc/init.d/volmgt stop
3. Mount the media manually by using the # mount -F hsfs path to block device path to mount point command. For example:
# mount -F hsfs /dev/rdsk/c0t2d0s2 /mnt -
Re: solaris 8 VM on T41 Sparc server?
Hi Eze ,
I have a customer with a similar requirement where customer has Solaris 8 (2/02 , 7/03) and Solaris 9 (4/04, 12/03, 9/05) installed as physical servers which needs to be virtualized (P2V) , is it possible to run them as branded zone on solaris 10 or solaris 11 ? Would applications compatibility be risked and would there be any fine points to remember for these conversions.
Thanks
ArunHello
sol8 and sol9 physical servers can be in a brandz zone only in sol10 (sol11 can't have sol8 nor sol9 brandz). In general the applications usually works fine.
But I would suggest to try to migrate that applications to sol10 or sol11, as sol8 and sol9 are very old OS and now that your customer is thinking in moving forward could be a time to do.
Regards
Eze -
How can i use Flash Drive in V880 with Solaris 8
i want mount pen drive(flash drive) in my V880 server where i install Solaris 8. so what is the procedure?
thanksTwo bugs, one affecting Apple's Mac platform and another attacking Microsoft's Windows, exploit certain Flash player vulnerabilities to install malware onto users' systems, reports ArsTechnica. While users of other operating systems like Linux have yet to report attacks, Adobe's advisory notes the exploit affects all platforms.
Designated as CVE-2013-0634, the first vulnerability targets the Safari and Firefox Web browsers running on OS X, and is also being used as a trojan to deploy Microsoft Word documents containing malware. For Mac users, the flaw affects Adobe Flash Player version 11.5.502.146 or earlier.
On March 1 Apple again blocked Flash Player for Lion and Mountain Lion:
http://support.apple.com/kb/HT5660
The Adobe Flash patch can be found on Adobe’s website, and users can visit this page to check if their software is the most curent version.
You should uninstall any previous version first, and repair permissions after installing the new version.
If you still get a ‘plug-ins blocked’ message:
http://support.apple.com/kb/HT5271
You can check here: http://www.adobe.com/products/flash/about/ to see which version you should install for your Mac and OS. The latest version,10.3.183.23 or later, is for Intel Macs only running Tiger or Leopard, as Adobe no longer support the PPC platform. Version 11.4.402.265 or later is for Snow Leopard onwards.
You should first uninstall any previous version of Flash Player, using the uninstaller from here (make sure you use the correct one!):
http://kb2.adobe.com/cps/909/cpsid_90906.html
and also that you follow the instructions closely, such as closing ALL applications first before installing. You must also carry out a permission repair after installing anything from Adobe. -
I don't know, how install Solaris 10 in V445server
I dosnt know how install Solaris 10in these station, please help me
On pages where you downloaded Solaris, there is documentation in PDF format for how to install this OS.
Anyway it has not a hard setup program, just follow instructions and operating system will be installed. But pay attention to network settings and packages you need.
For most cases suggested disk partition is good. -
Installing solaris 10 on an IBM server with ServeRAID
G'day,
I want to install solaris 10 on my IBM xSeries eServer 235 and install starts fine but straight away it complains about not finding any HDDs and exits.
I do have HDDs installed, three infact.
They are SCSI on the IBM ServeRAID adaptor and i have used ServerGuide to reformat the disks but solaris just cannot find them.
Why is this??
thanks,
jasonI did some idgging and i pretty much concluded that
we need serveRAID drivers for the OS be find the
disks.I've got the same thoughts. Though Solaris 10 is listed in Release Notes for the latest IBM ServeRAID Support CD, and CD itself contains floppy images for what it thinks is a 'solaris drivers', but either those drivers doesn't work or there is wrong drivers. Doing as described in "Installing" readme doesn't give much result. BTW - it's initial release of ServeRAID Support CD where support for Solaris OS is offered.
So all the OSs in the serveraid list are the oes that
serveraid will provide a driver for automatically.If only you have had updated both Server BIOS and RAID Adapter firmwares as described in relative readme's.
I am not sure what to do from here, sell the damn
server i supose!Me too.
I've got RHEL ES4 installed in RAID logical volumes, directly from OS installation distro, without using ServeRAID Support CD drivers. But I was supposed to use Solaris and not the RHEL.
Funnily enough when i got it a heat sink fell off the
northbridge or chipset, not sure which it is. A tad
dodgy. -
Order of words, fuzzy and utl_match
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
"CORE 10.2.0.1.0 Production"
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
create table category(cat_id number(20),cat_type varchar2(3000));
create table category_match(cat_id number(20),cat_type varchar2(3000));
Insert into category (CAT_ID,CAT_TYPE) values (12790,'AUTO CONSULTANTS');
INSERT INTO CATEGORY (CAT_ID,CAT_TYPE) VALUES (23803,'AUTO CONSULTANT');
Insert into category (CAT_ID,CAT_TYPE) values (23804,'CONSULTANT FOR AUTO FINANCE');
Insert into category_match (CAT_ID,CAT_TYPE) values (12790,'AUTO CONSULTANTS');
INSERT INTO CATEGORY_match (CAT_ID,CAT_TYPE) VALUES (23803,'AUTO CONSULTANT');
Insert into category_match (CAT_ID,CAT_TYPE) values (23804,'CONSULTANT FOR AUTO FINANCE');
CREATE INDEX "LOOKING4"."MYINDEX" ON "CATEGORY_MATCH"
"CAT_TYPE"
INDEXTYPE IS "CTXSYS"."CONTEXT" ;
CREATE INDEX "LOOKING4"."CAT_TYPE_IDX" ON "CATEGORY"
"CAT_TYPE"
INDEXTYPE IS "CTXSYS"."CTXCAT" ;
select cat_id,CAT_TYPE,UTL_MATCH.edit_distance_similarity(CAT_TYPE,'AUTO CONSULTANT') from
select * from category where catsearch(cat_type,
'<query>
<textquery grammar="context">
<progression>
<seq>auto consultant</seq>
<seq>?(auto) and ?(consultant)</seq>
</progression>
</textquery>
</query>'
,NULL)>0
)where rownum<5
23803 AUTO CONSULTANT 100
12790 AUTO CONSULTANTS 94
23804 CONSULTANT FOR AUTO FINANCE 26
update category set cat_type='CONSULTANTS AUTO' WHERE CAT_ID=12790
select cat_id,CAT_TYPE,UTL_MATCH.edit_distance_similarity(CAT_TYPE,'AUTO CONSULTANT') from
select * from category where catsearch(cat_type,
'<query>
<textquery grammar="context">
<progression>
<seq>auto consultant</seq>
<seq>?(auto) and ?(consultant)</seq>
</progression>
</textquery>
</query>'
,NULL)>0
)where rownum<5
23803 AUTO CONSULTANT 100
12790 CONSULTANTS AUTO 32
23804 CONSULTANT FOR AUTO FINANCE 26
select score(1),cat_id,cat_type from CATEGORY_MATCH where cat_id in(
select cat_id from category where catsearch(cat_type,
'<query>
<textquery grammar="context">
<progression>
<seq>auto consultant</seq>
<seq>?(auto) and ?(consultant)</seq>
</progression>
</textquery>
</query>'
,NULL)>0) AND
contains(cat_type,'?(auto) and ?(consultant)',1)>0
9 23803 AUTO CONSULTANT
9 12790 AUTO CONSULTANTS
9 23804 CONSULTANT FOR AUTO FINANCEi have been using catsearch to use progressive relaxation
there are many "cat_types" like "cat_id" =23803,12790 ,the order of words in a sentence changes
there are upto 10 words in each row of "cat_types" column
among others i have referred
Achieving functionality of many preferences using one context index
and
Re: Fuzzy search - more accurate score??
there is very less possibility of repetition of words in a row
utl match seems to work perfect only when the order of appearance of words is same
if you can suggest a way to get a very close score for cat_id 23803 and 12790 it would be much appreciated
thanks and regardsselect *
FROM (SELECT score(1),score(2),score(3),score(4),GREATEST (SCORE(1), SCORE(2) - 1, SCORE(3) - 2, SCORE(4) - 3) g_scores,
UTL_MATCH.EDIT_DISTANCE_SIMILARITY (CAT_TYPE,'AUTO CONSULTANT') EDS,
CAT_ID, CAT_TYPE
FROM category_match
WHERE CONTAINS (cat_type, 'solar water heater* 10 * 10', 1) > 0
OR CONTAINS (cat_type, 'NEAR ((?solar, ?water ,?heater), 0, TRUE) * 10 * 10', 2) > 0
OR CONTAINS (cat_type, 'NEAR ((?solar, ?water ,?heater), 0, FALSE) * 10 * 10', 3) > 0
or CONTAINS (CAT_TYPE, '(?solar AND ?water AND ?heater) * 10 * 10', 4) > 0
order by g_scores desc, EDS desc)
WHERE ROWNUM<100
100 100 100 100 100 23 4 SOLAR WATER HEATER-ANU
100 100 100 100 100 22 26901 SOLAR WATER HEATER SUDARSHAN SAUR
100 100 100 100 100 21 30 SOLAR WATER HEATER INDUSTRIAL
100 100 100 100 100 20 17379 SOLAR WATER HEATER DEALERS-TATA
100 100 100 100 100 20 26906 SOLAR WATER HEATER NUETECH
100 100 100 100 100 20 11465 SOLAR WATER HEATER DEALERS-ANU
100 100 100 100 100 20 21 SOLAR WATER HEATER-ZING TATA BP
100 100 100 100 100 20 11463 SOLAR WATER HEATER MANUFACTURERS-ANU
100 100 100 100 100 19 8 SOLAR WATER HEATER MANUFACTURERS
100 100 100 100 100 19 23 SOLAR WATER HEATER EVACUATED TUBE
100 100 100 100 100 19 49 SOLAR WATER HEATER-HOTMAX NOVA TATA BP
100 100 100 100 100 19 13357 SOLAR WATER HEATER INDUSTRIAL DEALERS
100 100 100 100 100 18 16300 SOLAR WATER HEATER-TECHNOMAX
100 100 100 100 100 18 9 SOLAR WATER HEATER DEALERS-TATA BP
100 100 100 100 100 18 20 SOLAR WATER HEATER-ZING
100 100 100 100 100 18 18 SOLAR WATER HEATER-ORB SOLAR
100 100 100 100 100 18 22552 SOLAR WATER HEATER-KOTAK URJA
100 100 100 100 100 18 26908 SOLAR WATER HEATER SUPREME
100 100 100 100 100 17 26907 SOLAR WATER HEATER TECHNOMAX"
100 100 100 100 100 17 13322 SOLAR WATER HEATER DISTRIBUTORS
100 100 100 100 100 17 22 SOLAR WATER HEATER-ETC TATA BP
100 100 100 100 100 17 48 SOLAR WATER HEATER-VAJRA PLUS TATA BP
100 100 100 100 100 17 27084 SOLAR WATER HEATER SALES
100 100 100 100 100 16 16236 SOLAR WATER HEATER DEALERS-RACOLD
100 100 100 100 100 16 15 SOLAR WATER HEATER-NUTECH
100 100 100 100 100 16 1 SOLAR WATER HEATER DEALERS
100 100 100 100 100 15 2 SOLAR WATER HEATER DEALERS-TATA BP SOLAR
100 100 100 100 100 15 31 SOLAR WATER HEATER DOMESTIC
100 100 100 100 100 15 13 SOLAR WATER HEATER DEALERS-V GUARD
100 100 100 100 100 14 17 SOLAR WATER HEATER-KAMAL SOLAR
100 100 100 100 100 13 11467 SOLAR WATER HEATER DEALERS-GILMA
100 100 100 100 100 13 19 SOLAR WATER HEATER-GILMA
100 100 100 100 100 13 10 SOLAR WATER HEATER REPAIRS & SERVICES-TATA SOLAR
100 100 100 100 100 12 10578 SOLAR WATER HEATER
100 100 100 100 100 11 3 SOLAR WATER HEATER REPAIRS & SERVICES
0 0 100 100 98 25 10120 WATER HEATER SOLAR INDUSTRIAL
0 0 100 100 98 20 12953 WATER HEATER SOLAR-RACOLD
0 0 100 100 98 17 10119 WATER HEATER SOLAR RESIDENCIAL
{code}
the query is working accurately technically
but is there any way to get 10578 on top
the requirement is
---first
solar water heater
solar water heater dealers
solar water heater manufacturers
solar water heater distributors
solar water heater sales
solar water heater repairs and servicing
---followed by
SOLAR WATER HEATER REPAIRS & SERVICES-TATA SOLAR
SOLAR WATER HEATER-KAMAL SOLAR
SOLAR WATER HEATER DEALERS-TATA BP SOLAR etc etc
so if the end user types in "solar water" the top row would have a row from the table that has what the end user has entered followed by "dealers" or "manufacturers" or "distributors" or "sales" or "repairs and servicing"
so if a row contains "solar water dealer" it shows up on top
or(if "solar water dealer" is not there and "solar water manufacturers" or "solar water distributors" etc is not present)
a row from the table that has what the end user has entered PLUS "heater" followed by "dealers" or "manufacturers" or "distributors" or "sales" or "repairs and servicing"
so "solar water heater dealers" shows up on top
these words - "dealers" , "manufacturers" , "distributors" , "sales" , "repairs and servicing" etc remain constant
what i am using right now is
{code}
create or replace
procedure HOME_OLD
p_cat_type in varchar2,
P_LOC IN NUMBER,
P_MAX IN NUMBER,
P_MIN IN NUMBER,
P_OUT OUT SYS_REFCURSOR
as
VARIAB varchar2(500);
VARIAB2 varchar2(500);
VARIAB3 varchar2(500);
VARIAB4 varchar2(500);
begin
--VARIAB2:='?'||replace(P_CAT_TYPE,' ',', ?');
--VARIAB3:='?'||replace(P_CAT_TYPE,' ',' ?');
--DBMS_OUTPUT.PUT_LINE(VARIAB2);
--DBMS_OUTPUT.PUT_LINE(VARIAB3);
SELECT stragg(cat_id) into variab
FROM (SELECT GREATEST (SCORE(1), SCORE(2) - 1, SCORE(3) - 2, SCORE(4) - 3) score,
CAT_ID, CAT_TYPE
FROM category_match
-- exact words in order:
WHERE CONTAINS (cat_type,get_basic(P_CAT_TYPE), 1) > 0
-- similar words next to each other in order:
OR CONTAINS (cat_type, get_near_syntax(P_CAT_TYPE), 2) > 0
-- similar words next to each other in any order:
OR CONTAINS (cat_type, get_near_syntax_desc(P_CAT_TYPE), 3) > 0
-- similar words anywhere in any order:
OR CONTAINS (cat_type, get_anywhere(P_CAT_TYPE), 4) > 0
order by score desc)
where rownum < 3;
DBMS_OUTPUT.PUT_LINE(VARIAB);
open p_out
FOR select * from(select rownum r,name,address1,telephone,mobile,CAT_TYP,cat_id,
(case when address2=p_loc and ACT_STATUS='Y' then '1' when address2=p_loc then '2' when address2 in
(select NEARBY_LOC from NEAR_BY where LOCALITY_ID=p_loc) and ACT_STATUS='Y'
then '3' when ADDRESS2 in (select NEARBY_LOC from NEAR_BY where LOCALITY_ID=p_loc)
then '4' when ACT_STATUS='Y' and address2<> p_loc then '5' else '6' end) as marker
FROM TEST_TEST
WHERE
CAT_ID in(select * from table(STRING_TO_TABLE_NUM(variab))) and rownum<P_MAX order by marker) where r>P_MIN;
IF VARIAB IS NULL THEN
OPEN P_OUT
FOR SELECT * FROM(SELECT rownum r,name,address1,telephone,mobile,CATS
FROM (SELECT GREATEST (SCORE(1), SCORE(2) - 1, SCORE(3) - 2, SCORE(4) - 3) score,
NAME,ADDRESS1,TELEPHONE,MOBILE,CATS
FROM TEST_TEST2
-- exact words in order:
WHERE CONTAINS (NAME,get_basic(P_CAT_TYPE), 1) > 0
-- similar words next to each other in order:
OR CONTAINS (NAME, get_near_syntax(P_CAT_TYPE), 2) > 0
-- similar words next to each other in any order:
OR CONTAINS (NAME, get_near_syntax_desc(P_CAT_TYPE), 3) > 0
-- similar words anywhere in any order:
OR CONTAINS (NAME, get_anywhere(P_CAT_TYPE), 4) > 0
ORDER BY SCORE DESC)
WHERE ROWNUM < P_MAX)where r>P_MIN;
END IF;
end home_old;
{code}
the flow is to find what the end user has entered in category table ,if a match exists,find all reg_ids from test_test materialized view that have selected the matched cat_id..
the test_test materialized view lists each company cat_id-selected-by-that-company number of times
if no match is found in category table what the end user has entered could be a company so a search in name column of test_test2 materialized view..
this materialized view has one entry for each company
{code}
create or replace
FUNCTION GET_BASIC(P_CAT_TYPE VARCHAR2)
RETURN VARCHAR2
is
VARIAB2 VARCHAR2(3000);
begin
VARIAB2:='{'||P_CAT_TYPE||'}*10*10';
return(VARIAB2);
END;
create or replace
FUNCTION GET_NEAR_SYNTAX(P_CAT_TYPE VARCHAR2)
RETURN VARCHAR2
is
VARIAB2 VARCHAR2(3000);
begin
VARIAB2:='NEAR((?{'||replace(P_CAT_TYPE,' ','}, ?{')||'}),10,TRUE)*10*10';
return(VARIAB2);
END;
create or replace
FUNCTION GET_NEAR_SYNTAX_DESC(P_CAT_TYPE VARCHAR2)
RETURN VARCHAR2
is
VARIAB2 VARCHAR2(3000);
begin
VARIAB2:='NEAR((?{'||replace(P_CAT_TYPE,' ','}, ?{')||'}),10,FALSE)*10*10';
return(VARIAB2);
END;
{code}
can anything be done to ameliorate this whole flow
can anything be done to eliminate the near_by and act_status and locality checking in ordering by "marker" clause
below is the materialized view creation ddl
SELECT IN_V.REG_ID,
IN_V.NAME,
IN_V.TELEPHONE,
IN_V.MOBILE,
IN_V.ADDRESS1,
IN_V.ADDRESS2,
IN_V.ACT_STATUS,
resec.cat_id,
UPPER(STRAGG(IN_V.CAT_TYPE)) AS cat_typ
FROM
(SELECT RSC.REG_ID,
R.NAME,
RSC.CAT_ID,
C.CAT_TYPE,
R.ADDRESS1,
R.ADDRESS2,
R.ACT_STATUS,
R.TELEPHONE,
R.MOBILE,
ROW_NUMBER() OVER (PARTITION BY RSC.REG_ID ORDER BY rsc.reg_id) AS TT
FROM REG_SEG_CAT RSC,
category C,
REGISTRATION R
WHERE C.CAT_ID=RSC.CAT_ID
AND R.REG_ID =RSC.REG_ID
) IN_V,
REG_SEG_CAT RESEC
WHERE in_v.reg_id=resec.reg_id
AND IN_V.TT <6
GROUP BY IN_V.REG_ID,
IN_V.NAME,
IN_V.TELEPHONE,
IN_V.MOBILE,
IN_V.ADDRESS2,
IN_V.ACT_STATUS,
IN_V.ADDRESS1,
resec.cat_id;
and sql>desc test_test
REG_ID
NAME
TELEPHONE
MOBILE
ADDRESS1
ADDRESS2
ACT_STATUS
CAT_ID
CAT_TYP
please let me know if you need more info
Edited by: 946207 on Apr 19, 2013 6:22 PM -
Using a ommand to generate more than one row of data in utl file
Hi Guys
This might be a pretty long one. But I require help with regards to using outer and inner loops within my code.
Here is the task:
Each account involved with the DCA Allocation has an entry in the DCAACCOUNTALLOCATION table to track its progress. The STATUS value of the entry shows the position of the account in the DCA Allocation process.
The status entry being tested is 3.
Below is the code:
create or replace
PROCEDURE DCA_BMW_OUT
IS
-- Declare all variables as reference
v_out_file UTL_FILE.FILE_TYPE;
v_row_Count NUMBER;
r_bmw NUMBER;
v_out_directory all_directories.directory_path%type;
v_out_filehandle UTL_FILE.FILE_TYPE := NULL;
v_out_buffer varchar2 (32767);
v_records NUMBER;
body_output varchar2(32759 BYTE);
dictionary_guarantorsexist varchar2 (1 Char);
-- Text required within this part of the procedure
v_body varchar2(32767 BYTE);
v_header VARCHAR2(32759 BYTE);
BEGIN
FOR r_bmw IN
( SELECT *
FROM dcaadditionaldata
WHERE directory_name IS NOT NULL
) LOOP
BEGIN
-- Output file to be added into the directory specified
v_out_file := utl_file.fopen (r_bmw.directory_name, 'DCAExport_1_' || TRIM(TO_CHAR(SYSDATE,'DDMMYYYY_HH24MISS')) || '.txt', 'W');
-- The Header data which will be outputted to the file
v_header := 'KennzeichenBrgschaftsforderungGesamtforderung|Währung|Übergabedatum|DifferenzierungAnwalts-oderInkassofall|MainMarktpartnernummer|
MainAnrede|MainTitel|MainName|MainVorname|MainStraße|MainHausnummer|MainPLZ|MainOrt|MainLand|MainGeburtsdatum|MainTelefonnr.Schuldner|G1Marktpartnernummer
G1Anrede G1Titel G1Name G1Vorname G1Straße G1Hausnummer G1PLZ G1Ort G1Land G1Geburtsdatum G1Telefonnr.Schuldner G2Marktpartnernummer G2Anrede G2Titel
G2Name|G2Vorname|G2Straße|G2Hausnummer|G2PLZ|G2Ort|G2Land|G2Geburtsdatum|G2Telefonnr.Schuldner|G3Marktpartnernummer|G3Anrede|G3Titel|G3Name|G3Vorname|
G3Straße|G3Hausnummer|G3PLZ|G3Ort|G3Land|G3Geburtsdatum|G3Telefonnr.Schuldner|G4Marktpartnernummer|G4Anrede|G4Titel|G4Name|G4Vorname|G4Straße|G4Hausnummer|
G4PLZ|G4Ort|G4Land|G4Geburtsdatum|G4Telefonnr Schuldner|G5Marktpartnernummer|G5Anrede|G5Titel|G5Name|G5Vorname|G5Straße|G5Hausnummer|G5PLZ|G5Ort|G5Land|
G5Geburtsdatum|G5Telefonnr.Schuldner|Kundennr.|Bestandsnr.|Finanzierungsnr.|KennzeichenFinanzierung/Leasing|Kennzeichenprivat/gewerblich|
reguläresVertragsende|Laufzeit|Vertragsdatum|Vertragsstatus|Ratenbetrag|Filiale/Gebiet|Finanzierungstyp|BankverbindungKonto|BankverbindungBLZ|
RSVKennzeichen|Kündigungsdatum|Modell|Fahrgestellnummer|KFZKennzeichen|KFZZulassungsdatum|CoD1Marktpartnernummer|CoD1Anrede|CoD1Titel|CoD1Name|
CoD1Vorname|CoD1Straße|CoD1Hausnummer|CoD1PLZ|CoD1Ort|CoD1Land|CoD1Geburtsdatum|CoD1Telefonnr.Schuldner|CoD2Marktpartnernummer|CoD2Anrede|CoD2Titel|
CoD2Name|CoD2Vorname|CoD2Straße|CoD2Hausnummer|CoD2PLZ|CoD2Ort|CoD2Land|CoD2Geburtsdatum|CoD2Telefonnr.Schuldner|CoD3Marktpartnernummer|CoD3Anrede|
CoD3Titel|CoD3Name|CoD3Vorname|CoD3Straße|CoD3Hausnummer|CoD3PLZ|CoD3Ort|CoD3Land|CoD3Geburtsdatum|CoD3Telefonnr.Schuldner|CoD4Marktpartnernummer|
CoD4Anrede|CoD4Titel|CoD4Name|CoD4Vorname|CoD4Straße|CoD4Hausnummer|CoD4PLZ|CoD4Ort|CoD4Land|CoD4Geburtsdatum|CoD4Telefonnr.Schuldner|
CoD5Marktpartnernummer|CoD5Anrede|CoD5Titel|CoD5Name|CoD5Vorname|CoD5Straße|CoD5Hausnummer|CoD5PLZ|CoD5Ort|CoD5Land|CoD5Geburtsdatum|
CoD5Telefonnr.Schuldner Y|Y|5830,99|EUR|20/08/2009|DCA|4|123456|Herr||Mueller|Rainer|Messigasse|33|84432|Filz|Deutschland|01/07/1957|08912345|234567|Frau|Dr|Mueller|Rita|Messigasse|33|84432|Filz|Deutschland|13/12/1955|08912345|||||||||||||||||||||||||||||||||||||||||||||||||76543|5000234567||Lease|Privat|12/12/2013|60|12/12/2008||250,50|US|Rate|1234567890|32343450|N||BMW 320 i|W34567890PA34567|M-H-3456|09/12/2008||||||||||||||||||||||||
N|450,80|EUR|20/08/2009|DCA|4|987654|Frau||Meier|Heide|Beinstr.|44|86353|Laus|Deutschland|03/06/1949|08987654|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||87654||8765675585|Loan|Gewerblich|14/03/2012|72|14/03/2006||500,01|DF|Select|976579657|32343450|N||BMW 500 sl|W94567890PA34568|M-H-3457|10/03/2006|34343434|Herr|Dipl|Meier|Rudolf|Heislestr.|69|85433|Maus|Deutschland|28/05/1945|08934567|234567|Frau|Dr|Mueller|Rita|Messigasse|33|84432|Filz|Deutschland|13/12/1955|08912345
Y|33970,50|EUR|20/08/2009|Lawyer|4|64646464|Frau||Schmidt|Susanne|Hueftgasse|55|89363|Maus|Deutschland|23/08/1933|08934567|34343434|Herr|Dipl|Meier|Rudolf|Heislestr.|69|85433|Maus|Deutschland|28/05/1945|08934567|234567|Frau|Dr|Mueller|Rita|Messigasse|33|84432|Filz|Deutschland|13/12/1955|08912345|||||||||||||||||||||||||||||||||||||98757|5000785675||Lease|Privat|11/11/2009|48|11/11/2005||380,70|GH|Zielrate|234567899|32343450|Y||BMW 380 s|W54567890PA34569|M-H-3458|07/11/2005||||||||||||||||||||||||
N|10040,20|EUR|20/08/2009|Lawyer|4|4865465|Herr||Schulz|Karl|Nasenweg|77|83354|Schuh|Deutschland|18/01/1965|08972545|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||46789|50004765787||Lease|Privat|16/09/2012|60|16/09/2007||1234,56|OS|ZUS|98765432|32343450|Y||BMW 280 i|W74567890PA34570|M-H-3459|12/09/2007||||||||||||||||||||||||';
utl_file.PUT_LINE(v_out_file,v_header,TRUE);
-- Below will output a row of data which satisfy the requirements.
FOR body_output IN
( SELECT
AccountDetails.CUSTOMERNUMBER, AccountDetails.ACCOUNTNUMBER, CUSTOMERDETAILS.CDTITLE, CUSTOMERDETAILS.CDFIRSTNAME, CUSTOMERDETAILS.CDLASTNAME, AccountDetails.ACCOUNTTYPE,
AccountDetails.ORIGINALCONTRACTENDDATE, AccountDetails.CONTRACTTERM, AccountDetails.CONTRACTENDDATE, AccountDetails.BRANCHAREA, AccountDetails.PRODUCTTYPE,
AccountDetails.HOUSEBANKACCOUNT, AccountDetails.CARMODEL, AccountDetails.CARLICENCE, AccountDetails.ARREARSBALANCE, AccountDetails.CODEBTOR, AccountDetails.GUARANTORNUMBER
FROM AccountDetails
JOIN CUSTOMERDETAILS ON AccountDetails.CUSTOMERNUMBER = CUSTOMERDETAILS.CUSTOMERS1
WHERE EXISTS
( SELECT *
FROM Dcaaccountallocation
JOIN DebtEpisodes ON DebtEpisodes.ACCOUNTID = Dcaaccountallocation.ACCOUNTID
WHERE Dcaaccountallocation.dcaid = 41
AND Dcaaccountallocation.status = 3
AND DebtEpisodes.DCASentDate IS NULL
AND Dcaaccountallocation.ACCOUNTID = AccountDetails.ACCOUNTNUMBER
AND DebtEpisodes.DCAORLAWYER = 'DCA'
LOOP
UTL_FILE.PUT_LINE (v_out_file,
body_output.CUSTOMERNUMBER|| '|' || body_output.ACCOUNTNUMBER|| '|' ||body_output.CDTITLE|| '||' ||body_output.CDFIRSTNAME || '|||||' ||
body_output.CDLASTNAME|| '||||' || body_output.ACCOUNTTYPE|| '|' ||body_output.ORIGINALCONTRACTENDDATE|| '||||' ||body_output.CONTRACTTERM || '|||||' ||
body_output.CONTRACTENDDATE|| '|' || body_output.BRANCHAREA|| '||' ||body_output.PRODUCTTYPE|| '||' ||
body_output.HOUSEBANKACCOUNT|| '|||' || body_output.CARMODEL|| '||||' ||body_output.CARLICENCE|| '|' ||
body_output.ARREARSBALANCE|| '||||' || body_output.CODEBTOR|| '|' ||body_output.GUARANTORnumber);
END LOOP;
UTL_FILE.fclose (v_out_file);
EXCEPTION
WHEN OTHERS THEN
UTL_FILE.put_line (v_out_file, 'failed');
-- If any errors occur when closing the file, then we close the opened file.
IF utl_file.is_open(v_out_file) THEN
UTL_FILE.fclose (v_out_file);
END IF;
END;
UPDATE DebtEpisodes
SET handoverdate = null
WHERE DCAORLAWYER = 'DCA'
AND accountid IN
( SELECT accountid
FROM Dcaaccountallocation
WHERE Dcaaccountallocation.status = 3
AND Dcaaccountallocation.dcaid = 41
END LOOP;
END DCA_BMW_OUT;
Currently, the above codes issue is that although many rows of data have been inputted in all the tables, with regards to the select criteria above (in italics), it only produces one row of data when i expect more than one to appear.
If the query only outputs one row but you're expecting it to produce more than one row, then you need to dissect the statement to find out where the output is being unduly restricted
I was told maybe an outerloop or an inner loop would do the trick, but really stuck on how and where to put it.
Hope this makes sense guys and I would really appreciate your time.
Thanksif i run this particular code
( SELECT
AccountDetails.CUSTOMERNUMBER, AccountDetails.ACCOUNTNUMBER, CUSTOMERDETAILS.CDTITLE, CUSTOMERDETAILS.CDFIRSTNAME, CUSTOMERDETAILS.CDLASTNAME, AccountDetails.ACCOUNTTYPE,
AccountDetails.ORIGINALCONTRACTENDDATE, AccountDetails.CONTRACTTERM, AccountDetails.CONTRACTENDDATE, AccountDetails.BRANCHAREA, AccountDetails.PRODUCTTYPE,
AccountDetails.HOUSEBANKACCOUNT, AccountDetails.CARMODEL, AccountDetails.CARLICENCE, AccountDetails.ARREARSBALANCE, AccountDetails.CODEBTOR, AccountDetails.GUARANTORNUMBER
FROM AccountDetails
JOIN CUSTOMERDETAILS ON AccountDetails.CUSTOMERNUMBER = CUSTOMERDETAILS.CUSTOMERS1
WHERE EXISTS
( SELECT *
FROM Dcaaccountallocation
JOIN DebtEpisodes ON DebtEpisodes.ACCOUNTID = Dcaaccountallocation.ACCOUNTID
WHERE Dcaaccountallocation.dcaid = 41
AND Dcaaccountallocation.status = 2
AND DebtEpisodes.DCASentDate IS NULL
AND Dcaaccountallocation.ACCOUNTID = AccountDetails.ACCOUNTNUMBER
AND DebtEpisodes.DCAORLAWYER = 'DCA'
This returns 1 row of data
However if i run a small part of the above code...
SELECT *
FROM Dcaaccountallocation
JOIN DebtEpisodes ON DebtEpisodes.ACCOUNTID = Dcaaccountallocation.ACCOUNTID
WHERE Dcaaccountallocation.dcaid = 41
AND Dcaaccountallocation.status = 2
It returns a lot of rows with a status of 2
Now i presume what I am going to do is to ensure that all the fields provide satisfactory requirements, with regards to the above code. Although I have many records in all the stated tables already.
:(
Maybe you are looking for
-
Has anyone been able to get https to work with SCEP? Right now I'm just trying to authenticate a trustpoint and it does work if I use http as my enrollment URL but as soon as I change it https I get the following: Unable to locate cert record by issu
-
Report to identify invoices, debit memos and credit memos
Hi, Just enquiring if there is a report in SAP that will identify all invoices debit memos and credit memos issued within a particular date range. Thank you.
-
hai freinds can any one tell me in which table are the email id of the sap user is stored thanx on advance afzal
-
I have created a document in Adobe Acrobat 9 Pro that has several Text fields and Combo Boxes. My goal is to be able to have this document open in Preview on a mac and or Adobe Reader on PC computers so that clients can fill out a form I started for
-
How to identify that a member is "Dynamic Calc" in script
Hi there, i wonder if there is a way to write a HBR that will do the following: if([Member1] is dynamic calc) do something; elseif do something else; endif where [Member1] is a variable passed from Planning form (squre brackets are ommited by editor)