Performance Hit Due to NVL() Function
Hi,
I am from dev project team,we are facing a performance hit due to NVL() function,pls give a solution to resolve this issue.
the below is my function which i created to calculate some efforts.
create or replace function check_function(
v_deal_detail ,
v_tower ,
v_subtower,
v_location ,
v_client_role ,
v_emp_category ,
v_year ,
v_state )
return number
is
v_trans_offshore_efforts number(30,8) default 0;
v_stdy_offshore_efforts number(30,8) default 0;
begin
if v_state =1
or v_state is null
then
begin
select nvl(sum(decode (d.loc_type_id,
crmuat_global_constant_pkg.GLB_OFFSHORE,
s.trans_efforts,
0)),0)
into v_trans_offshore_efforts
from prc_calc_trans_fte_dtls_t s, prc_deal_dtl_loc_dtls_t d
where s.deal_detail_id= d.deal_detail_id
and s.tower_id = d.tower_id
and s.location_id = d.location_id
and s.deal_detail_id = v_deal_detail
and s.client_role_id = nvl(v_client_role,s.client_role_id)
and s.emp_category_id = nvl(v_emp_category,s.emp_category_id)
and s.tower_id = v_tower
and s.subtower_id = nvl(v_subtower,s.subtower_id)
and s.location_id = nvl(v_location,s.location_id)
and s.year_no = v_year;
exception
when no_data_found
then
v_trans_offshore_efforts := 0;
end;
end if;
if v_state = 1
then
return v_trans_offshore_efforts;
end if;
end;
pls give me a solution.
Regards,
shinu
{message:id=9360003}
Similar Messages
-
Any differences of performance/results for these Date functions?
Are there any differences, in turns of performances/results between these two queries?
datediff(yy, dateofbirth, getdate())>50
dateofbirth < dateadd(yy, -50, getdate())Given that this is an Oracle forum, I assume you are expecting an Oracle based answer, so I would have to say there would be absolutely no performance difference between those date functions. Both sets will fail with ORA-00904 within milliseconds. This is due to the fact that those are SQL Server functions.
John -
Performance Hit After Oracle Database Upgrade to 10.2.0.4
We have a couple dozen workbooks that took this performance hit after the upgrade of the database/migration to a new server. Worksheets that executed in the ten second range are now running for hours or simply not finishing. We took the new server factor out of the equation by rolling back the database to 10.2.0.3 where a test EUL resides and the problem was resolved. Has anyone seen this issue? Does anyone have an suggestions? An early reply would be greatly appreciated.
Thanks,
JerreRod,
Thanks for the quick reply. We are looking at the different plans and modifying the optimizer settings, switching back and forth, as we speak. We are now starting with the hints. Currently our Server 'optimizer_mode' parameter is ALL_ROWS. We are planning to change the to 'Choose' and see what happens. The workbooks that are impacted are on our oldest business areas of Finance and HR. The former setup was borrowed from another school for a quick, low cost start up. The latter was thrown together by novices. Our true datamarts developed by knowledgeable personnel with star schemas are not impacted. Of course we are planning on redoing the older business areas but time, personnel and money matters slow things down. It is these workbooks on the older business areas that are greatly affected by the migrations and upgrade. We eventually get things to settle down but past actions do not always have the same resolution with newer and better servers and upgrades.
Thanks,
Jerre -
I have two identical, but independant test stations, both feeding data back to a Data Acquisition Computer running LabView 6.1. Everything is duplicated at the computer as well, with two E-series multifunction I/O cards (one for each test station) and two instances of the same LabView program for acquiring and analysing the data. The DAQ computer has a Celeron processor w/ 850Mhz clock and 512MB memory, and is running on Windows NT.
I have noticed that when I run both the applications simultaneously, I take a substantial performance hit in terms of processing speed (as opposed to running just one program). Why does this happen and how can I prevent it? (In t
his particular case, it may be possible to combine both the tests into one program since they are identical, but independant, simultaneous control of two different LabView programs is a concept I need to prove out).
Thanks in advance for any tips, hints and spoon feedings (!)....Depending on your application, you may or may not be able to improve things.
Firstly, each task requires CPU time, so a certain performance difference is guaranteed. Making sure you have a "wait until ms" in every while loop helps in all but the most CPU intensive programs.
Secondly, if you are
1) streaming data to disk
2) Acquiring lots of data over the PCI bus
3) Sending lots of data o ver the network
you can have bottlenecks elsewhere than in your program (limited Disk, PCI or Network bandwidth).
Avoid also displaying data which doesn`t need to be displayed. An array indicator which only shows one element still needs a lot of processing time if the array itself is large.... Best is to set the indicator invisible if this is the case.
I think
it would be best if you could give some more information about the amount of data being acquired, processed and sent. Then maybe it will be more obvious where you can optimise things. If you are running W2000, try activating the task manager while the program(s) are sunning to see where the bottleneck is.
Shane
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2) -
Using insert command in NVL function
How can we use insert command in a NVL function
exapmle : INSERT INTO employee
VALUES ( (NVL ( (SELECT emp_id
FROM employee
WHERE emp_name LIKE 'Test'),
(insert into employee values((select max(emp_id)+1 from employee),'Test')))));
I mean i will check for the record to exist in the table and if not exist i will add it to the table.998504 wrote:
How can we use insert command in a NVL function
exapmle : INSERT INTO employee
VALUES ( (NVL ( (SELECT emp_id
FROM employee
WHERE emp_name LIKE 'Test'),
(insert into employee values((select max(emp_id)+1 from employee),'Test')))));
I mean i will check for the record to exist in the table and if not exist i will add it to the table.The first thing caught my eye is this
max(emp_id) +1A real bad piece of code. Never do that. Ever thought about multi user environment? Use a SEQUENCE.
If you want EMP_NAME to be unique (Which looks strange to me), then just add a UNIQUE constraint. You dont try to do what oracle already does really well. -
hi,
i want to use nvl Function in that Quary
select f_words(SUM(a.AMOUNT)+sum(a.vat_amount) +
nvl( (select sum(b.LABOUR_AMT)+sum(b.service_tax_amt)
from LAB_WORK_DTL b
where a.bill_no =b.bill_no), 0)
)) as t
from TRANSACTION_DETAILS a
where a.bill_no =:P42_bill_no
group by a.BILL_NO;
i am using NVL in that Quary Like This
select f_words*(nvl(S*UM(a.AMOUNT)+sum(a.vat_amount) +
nvl( (select sum(b.LABOUR_AMT)+sum(b.service_tax_amt)
from LAB_WORK_DTL b
where a.bill_no =b.bill_no), 0)
)) as t
from TRANSACTION_DETAILS a
where a.bill_no =:P42_bill_no
group by a.BILL_NO;
I want to use NVL Function In BOLD
How Can I use NVL Functiion.
Thanks
Edited by: Manoj Kaushik on Mar 25, 2010 5:55 AMhi,
select f_wordsl(SUM(a.AMOUNT)+sum(a.vat_amount) +
nvl( (select sum(b.LABOUR_AMT)+sum(b.service_tax_amt)
from LAB_WORK_DTL b
where a.bill_no =b.bill_no), 0)
)) as t
from TRANSACTION_DETAILS a
where a.bill_no =:P42_bill_no
group by a.BILL_NO;
i have two tables Bill no is comman field in both tables if i have not enter value in any one of the table .
so how can i show Total amount in words if Bill NO are not in any one table.
Thanks -
Performance hit using "where" clause in the query
Hi All,
I am facing a huge performance hit in the java code when using "where" clause in queries. Following are the details:
1. SELECT * FROM Employee
2. SELECT * FROM Employee where employeeid in (26,200,330,571,618,945)
There is no difference in Query Execution Time for both queries.
Business Logic Time is huge in second case as compared to first one (ratio - 1:20).
Rows returned are more in first case as compared to second case.(ratio - 1:4)
Business Logic is same for both the cases where I iterate through the ResultSet, get the objects and set them in a data structure.
Does anybody know the reason of unexpected time difference for the business logic in the second case?Since you're mentioning clustering your index, I'll assume you are using Oracle. Knowing what database you are using makes it a lot easier to suggest things.
Since you are using Oracle, you can get the database to tell you what execution plan it is using for each of the 2 SQL statements, and figure out why they have similar times (if they do).
First, you need to be able to run SQL*Plus; that comes as part of a standard database installation and as part of the Oracle client installation - getting it set up and running is outside the scope of this forum.
Second, you may need your DBA to enable autotracing, if it's not already:
http://asktom.oracle.com/~tkyte/article1/autotrace.html
http://www.samoratech.com/tips/swenableautotrace.htm
Once it's all set up, you can log in to your database using sql*plus, issue "SET AUTOTRACE ON", issue queries and get execution plan information back.
For example:
SQL> set autotrace on
SQL> select count(*) from it.ticket where ticket_number between 10 and 20;
COUNT(*)
11
Execution Plan
Plan hash value: 2983758974
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 4 | 1 (0)| 00:00:01 |
| 1 | SORT AGGREGATE | | 1 | 4 | | |
|* 2 | INDEX RANGE SCAN| TICKET_N10 | 12 | 48 | 1 (0)| 00:00:01 |
Predicate Information (identified by operation id):
2 - access("TICKET_NUMBER">=10 AND "TICKET_NUMBER"<=20)
Statistics
0 recursive calls
0 db block gets
1 consistent gets
0 physical reads
0 redo size
515 bytes sent via SQL*Net to client
469 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
1 rows processed
SQL> This tells me that this query used an INDEX RANGE SCAN on index TICKET_N1; the query can't do much better than that logically... In fact, the statistic "1 consistent gets" tells me that Oracle had to examine only one data block to get the answer, also can't do better than that. the statistic, "0 physical reads" tells me that the 1 data block used was already cached in Oracle's memory.
the above is from Oracle 10g; autotrace is available back to at least 8i, but they've been adding information to the output with each release.
If you have questions about sql_plus, check the forums at asktom.oracle.com or http://forums.oracle.com/forums/category.jspa?categoryID=18
since sql*plus is not a JDBC thing...
Oh, and sql*plus can also give you easier access to timing information, with "set timing on". -
Compilation problems using NVL function in Pro*C subselect
I have come across a weird oracle problem. When I execute the following query in SQLPlus it works but when
I include it in Pro*C code in a EXEC SQL statement it gives syntax errors and fails to compile. Any idea what I am doing wrong.
SELECT DISTINCT
A.ID_PERSON,
C.ID_STAGE_PERSON_LINK ,
A.NM_PERSON_FULL,
A.NBR_PERSON_AGE,
A.ADDR_PERSON_ST_LN_1,
A.ADDR_PERSON_CITY,
A.ADDR_PERSON_ZIP,
A.CD_PERSON_STATE,
A.CD_PERSON_COUNTY,
A.NBR_PERSON_PHONE,
C.CD_STAGE_PERS_REL_INT
FROM
PERSON A,
STAGE_PERSON_LINK C
WHERE
C.ID_CASE = 88776721
AND A.IND_INVALID_PERS IS NULL
AND C.CD_STAGE_PERS_TYPE = 'PRN'
AND C.ID_PERSON = A.ID_PERSON
AND C.ID_STAGE_PERSON_LINK =
NVL (
(SELECT MAX(F.ID_STAGE_PERSON_LINK)
FROM STAGE_PERSON_LINK F
WHERE F.ID_PERSON=C.ID_PERSON
AND F.ID_CASE = C.ID_CASE
AND F.CD_STAGE_PERS_TYPE = 'PRN'
AND F.CD_STAGE_PERS_REL_INT IS NOT NULL)
(SELECT MAX(G.ID_STAGE_PERSON_LINK)
FROM STAGE_PERSON_LINK G
WHERE G.ID_PERSON=C.ID_PERSON
AND G.ID_CASE = C.ID_CASE
AND G.CD_STAGE_PERS_TYPE = 'PRN')
AND A.ID_PERSON NOT IN
SELECT S.ID_PERSON
FROM STAGE_PERSON_LINK S,STAGE T
WHERE S.ID_CASE = C.ID_CASE
AND S.ID_CASE = T.ID_CASE
AND S.ID_STAGE = T.ID_STAGE
AND T.CD_STAGE <> 'INT'
MINUS
SELECT H.ID_PERSON
FROM STAGE_PERSON_LINK H, STAGE F
WHERE H.ID_CASE = F.ID_CASE
AND H.ID_STAGE = F.ID_STAGE
AND H.ID_CASE = C.ID_CASE
AND H.CD_STAGE_PERS_ROLE <> 'XE'
AND F.CD_STAGE <> 'INT'
This query returns data when run in sqlplus.When used in a Pro*C C program and compiled the precompiler complains with syntax errors when used with EXEC SQL DECLARE CLSS82D_CURSOR CURSOR FOR < query above >.However removing the NVL function and retaining the subselect clause compiles but that is not what I want to do.
Syntax error at line 262, column 20, file clss82d.pc:
Error at line 262, column 20 in file clss82d.pc
SELECT MAX( F.ID_STAGE_PERSON_LINK )
...................1
PCC-S-02201, Encountered the symbol "MAX" when expecting one of the following:
( ) * + - / . @ | at, day, hour, minute, month, second, year,
The symbol "(" was substituted for "MAX" to continue.
Syntax error at line 263, column 10, file clss82d.pc:
Error at line 263, column 10 in file clss82d.pc
FROM STAGE_PERSON_LINK F
.........1
PCC-S-02201, Encountered the symbol "FROM" when expecting one of the following:
, ) * + - / | at, day, hour, minute, month, second, year,Pro*C works bit differently tha sqlplus. try removing the blank line after
SELECT MAX(G.ID_STAGE_PERSON_LINK)
FROM STAGE_PERSON_LINK G
WHERE G.ID_PERSON=C.ID_PERSON
AND G.ID_CASE = C.ID_CASE
AND G.CD_STAGE_PERS_TYPE = 'PRN')
good luck,
Gauranga -
Hello All,
I have a strange problem with a NVL function. In one of the view I am using a NVL fuction like this "NVL(doc_id,'-1') doc_id' and when I am
querying the view based on the doc_id it is taking more time because of the this NVL function.I removed the same and tested it is coming out withing milli secs.
Is there any way or any other function I can use.one more thing DOC_ID in the table is a VARCHAR2 field.
Please help me with this.
Best regards,
Pavan PatilTried Case not working ......
Please find the query (Table names and joines mentioned are not proper ones) ---
SELECT DECODE (tdoc.case_ver_no,
-1, -1,
c.uwrt_case_tid
) case_tid,
c.case_id case_id, c.case_ver_no case_version_no,
c.prft_cntr_sid profit_cntr,
c.jnt_life_qualf_cd joint_life, c.co_id co_id,
(SELECT co_lnm
FROM t
WHERE cd = c.cd) co_lnm,
ald.given_nm first_name, ald.mid_nm middle_name,
ald.family_nm last_name, ald.life_idx_id life_id,
ald.sex_cd gender, al.doc_handle_id doc_handle_id,
alb.bnft_cd benefit_type,
alb.propsl_si_amt propsl_fc_amt, c.crncy_cd crncy_cd,
c.indiv_grp_cd individual_group_code,
c.assmnt_typ_cd assessment_type,
c.cli_ref_id client_ref,
DECODE (TO_CHAR (tdoc.case_ver_no),
'-1', '-1',
c.uwrt_id
) underwriter_id,
c.bu_cd bu_cd, al.assmnt_age_offset age,
(SELECT alb.bnft_cd rider_type
FROM te al,
tt alb,
tuwrt_case c
WHERE alb.main_bnft_ind <> 1
AND al.atid = alb.atid
AND al.utid = c.utid
AND c.case_id = c.case_id
AND ROWNUM = 1) rider_type,
(SELECT stat_cd
FROM tat
WHERE uwrt_case_tid = c.uwrt_case_tid
AND seq_no =
(SELECT MAX (ucs1.seq_no)
FROM tat ucs1
WHERE ucs1.uwrt_case_tid = c.uwrt_case_tid))
status,
NVL(tdoc.doc_id,'-1') doc_id, tdoc.doc_ttl doc_ttl,
tdoc.doc_typ_cd doc_typ_cd,
tdoc.bof_doc_catg_cd bof_doc_catg,
tdoc.doc_prim_catg_cd doc_prim_catg,
tdoc.doc_lang_cd doc_lang_cd, tdoc.doc_nm doc_nm,
tdoc.doc_crte_meth_cd doc_crte_meth_cd,
tdoc.doc_del_stat_cd doc_del_stat_cd,
tdoc.doc_fmt doc_fmt,
tdoc.doc_lock_user_id doc_lock_user_id,
tdoc.doc_lock_ts doc_lock_ts, tdoc.doc_ver doc_ver,
tdoc.doc_size doc_size,
tdoc.doc_ind_stat_cd doc_ind_stat_cd,
tdoc.doc_ind_user_id doc_ind_user_id,
DECODE (tdoc.doc_ind_loc_cd,
'CA', 'CAN',
'CARB', 'CAN',
tdoc.doc_ind_loc_cd
) doc_ind_loc_cd,
tdoc.last_upd_user_id last_upd_user_id, tdoc.upd_ts,
TO_DATE
(TO_CHAR (TO_DATE (tdoc.doc_recv_dt,
'yyyymmddhh24miss'
'MM/DD/YYYY HH24:MI:SS'
'MM/DD/YYYY HH24:MI:SS'
) doc_recv_dt,
TO_DATE
(TO_CHAR (TO_DATE (tdoc.doc_attch_dt,
'yyyymmddhh24miss'
'MM/DD/YYYY HH24:MI:SS'
'MM/DD/YYYY HH24:MI:SS'
) doc_attch_dt
FROM tt c,
ttl,
ttd,
ttft alb,
ttoc tdoc
WHERE al.u_tid(+) = c.u_tid
AND ald.a_tid(+) = al.a_tid
AND alb.astid(+) = al.astid
AND tdoc.doc_handle_id(+) = al.doc_handle_id
AND alb.main_ind(+) = 1
AND NVL (tdoc.doc_del_stat_cd, 'XX') != 'DELETD' -
NVL function's strange behaviour
Hi,
I have a sql statement (listed below) that uses NVL function which returns either the business name of branch name depending on whether the business name is null or not. It also uses the branch_name pl/sql function that returns the name of the branch.
What I found strange was that it executes the branch_name function even when the business_name is not null. It was my understanding that nvl returns expr1 if it's not null, and expr2 if expr1 is null. I don't want it to execute the branch_name function if business_name exists. Is it possible using NVL, or do I need to use DECODE to achieve that? p_record_id is a parameter that I pass to the function containing the sql statement e.g., p_record_id=10.
SELECT nvl( business_name, branch_name( p_record_id) ) "Name"
FROM entity
WHERE record_id = p_record_id;
Thanks
VicMarc,
Thanks for looking into it.
I just ran the code using DECODE and it seems that it executes the function only when the condition is true, which is exactly what I want. It won't execute the function if the condition is false, e.g., in the code below if the business_name is null then it executes the branch_name function, other wise it returns the business_name.
SELECT DECODE ( business_name,
null, branch_name( p_record_id ),
business_name ) "Name"
FROM entity
WHERE record_id = p_record_id;
Vic -
NVL Function on CLOB data type
Hi all,
I am not able to use the NVL function over clob..please suggest me a way to do the data validation of the CLOB in sql ....
below is the query i was using...
select t1.pic_name,t2.pic_name
from table1 t1,table2 t2
where nvl(t1.picture_message,'X') <> nvl(t2.picture_message,'X');i am getting the following error....
ORA-00932: inconsistent datatypes: expected - got CLOBThanks
RedeYour problem is not NVL but rather comparing CLOBs:
SQL> desc tbl1
Name Null? Type
ID NUMBER
X CLOB
SQL> desc tbl2
Name Null? Type
ID NUMBER
X CLOB
SQL> select nvl(x,'NULL CLOB')
2 from tbl1
3 /
NVL(X,'NULLCLOB')
NULL CLOB
SQL> select *
2 from tbl1,
3 tbl2
4 where tbl1.x = tbl2.x
5 /
where tbl1.x = tbl2.x
ERROR at line 4:
ORA-00932: inconsistent datatypes: expected - got CLOB
SQL> SY. -
NVL Function and Truncate Function in Template Builder
Hi Guys,
How would I use NVL function and Truncate function in the Word Template Builder.
These functions do not work in the Query Builder when i use SQL Query as the Dataset while creating a report.
I could not find examples in the Publisher Guide either.
Thanks
rkingmduHi
How can you not use the functions in your query? Does the builder return an error? ow about just pasting your query into the report definition does the nvl/trunc work then ?
Regards
Tim
http://blogs.oracle.com/xmlpublisher -
I ran across a problem with the format of an ASCI output file of an SQL script. The problem I have is with handling a particular column that contains account numbers. The column is defined with 8 characters. However not every entry has data. I have several fields that don't have any information.
Originally in my script I had the following line that made the script fail:
LPAD(TO_CHAR(TO_NUMBER(konten_nr)),8,'0'),
I then changed the line to the following: (The script ran but now I notice that the formatting is wrong)
LPAD(TO_NUMBER(LTRIM(konten_nr)),8,'0'),
I attempted to use the NVL function that will return a value when there is nothing in the column field but it doesn't work. Does anyone know what I'm doing wrong?
LPAD(NVL(TO_CHAR(TO_NUMBER(konten_nr),'FM999999999'),'0'),8,'0'),what is exactly your problem ?
you want to translater " 1234" in "00001234" ? then simply use to_char(konten_nr,'FM00000000') .
You want to translate " 1 1 1 1" in "01010101", then use replace(konten_nr,' ','0')
Give us some samples -
Performance hit when using a FirePro GPU?
Hey there!
I'm interested in purchasing a cheap ATI FirePro V4900 or similar GPU in order to take advantage of my 10 bit TFT when using Photoshop. I was wondering if I have to expect a performance hit when using PS 6.0 with such a card as opposed to a normal "gamer" GPU like the NVidia 670 GTX when :
- performing normal file handling, opening PSD files, paning, zooming, brushing, etc.
- applying some of the newer GPU-enhanced filters like Liquify, Oil Paint, Iris Blur, 3d enhancements, etc.
- actually applying/rendering a more demanding fliter such as Iris Blur?
Does anyone know about this? I'm afraid I could not find any benchmarks at all except for the one on Tomshardware regarding OCL, but that one does not include professional GPUs...
Thanks for any info in advance!There will not be synchronization when the method of A
is being called. The method 1) certainly saves memory
space, but will the performance be hurt since there
will only be one object accessed by multiple threads?
Or maybe it doesn't matter?If there is no synchronization, it will not matter. Threads execute methods. Methods do not run on Objects. The Object is just data that is implicitly linked to the method.
Just make sure it's safe to keep the method unsynchronized. -
[INS-06001] Failed to perform operation due to internal driver error
I'm installing GI 11.2.0.4 on the zone of solaris(SPARC) 11.1.
Among executed runInstaller, the following error occured when
"setup" button is pushed for checking SSH connectivity
on "Secify Cluster Configuration(Step 4 of 9)" section.
[INS-06001] Failed to perform operation due to internal driver error.
Additionally, the following was output by a console executed runInstaller.
# An unexpected error has been detected by HotSpot Virtual Machine:
# SIGBUS (0xa) at pc=0xffffffff3df832fc, pid=14407, tid=38
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_51-b10 mixed mode)
# Problematic frame:
# C [libc.so.1+0x832fc]
# An error report file with more information is saved as hs_err_pid14407.log
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
Does anyone know the solution for this issue?
The configuration of the system is the following.
+--------------------------------------------+
| testserver (global zone) |
|+------------+ +------------+|
|| zone1 | | zone2 ||
|| +-----| +----------+ |-----+ ||
|| |vnic3|--|etherstub1|--|vnic4| ||
|| +-----| +----------+ |-----+ ||
|| | | ||
|| +-----+ | | +-----+ ||
|| |vnic1| | | |vnic2| ||
|+------------+ +------------+|
| | +----------+ | |
| +---------|etherstub0|--------+ |
| +----------+ |
| | |
| +-----+ |
+------------------|vnic0|-------------------+
+-----+
zonecfg:kudotest01> export
create -b
set brand=solaris
set zonepath=/zones/kudotest01
set autoboot=false
set ip-type=exclusive
add net
set configure-allowed-address=true
set physical=vnic1
end
add net
set configure-allowed-address=true
set physical=vnic3
end
add anet
set linkname=net0
set lower-link=auto
set configure-allowed-address=true
set link-protection=mac-nospoof
set mac-address=random
end
add device
set match=/dev/dsk/c0t600144F00010E010379A5491444F0001d0
end
zonecfg:kudotest02> export
create -b
set brand=solaris
set zonepath=/zones/kudotest02
set autoboot=false
set ip-type=exclusive
add net
set configure-allowed-address=true
set physical=vnic2
end
add net
set configure-allowed-address=true
set physical=vnic4
end
add anet
set linkname=net0
set lower-link=auto
set configure-allowed-address=true
set link-protection=mac-nospoof
set mac-address=random
end
add device
set match=/dev/dsk/c0t600144F00010E010379A5491444F0001d0
end
zonecfg:kudotest02>
testserver:~# dladm show-vnic
LINK OVER SPEED MACADDRESS MACADDRTYPE VID
vnic0 etherstub0 40000 2:8:20:b5:32:c1 random 0
vnic1 etherstub0 40000 2:8:20:45:a2:af random 0
vnic2 etherstub0 40000 2:8:20:86:7e:4e random 0
vnic3 etherstub1 40000 2:8:20:8a:96:a random 0
vnic4 etherstub1 40000 2:8:20:ef:f3:dd random 0
root@kudotest01:~# ipadm show-addr
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
vnic1/v4 static ok 192.168.120.2/24
vnic3/privaddr static ok 192.169.120.2/24
lo0/v6 static ok ::1/128
vnic1/v6 addrconf ok fe80::8:20ff:fe45:a2af/10
root@kudotest02:~# ipadm show-addr
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
vnic2/v4 static ok 192.168.120.3/24
vnic4/privaddr static ok 192.169.120.3/24
lo0/v6 static ok ::1/128
vnic2/v6 addrconf ok fe80::8:20ff:fe86:7e4e/10Please check https://hiteshgondalia.wordpress.com/2012/12/08/ssh-setup-fail-unable-to-find-ssh_host_rsa_key-pub/, Oracle Application DBA: [INS-06001] Failed to perform operation due to internal driver error (During installation of RAC…
Maybe you are looking for
-
Why can't I copy files from my external hard drive - error code -50.
I sm trying to back up an external hard drive to a network drive. Some files copy but not all;. SOmetimes a folder seems to have copied but then I see that most of the files inside have not. And sometimes I just get 'An unexpected error has occurre
-
I'm creating a Forum for a society, What's better sessions? or cookies? Cookies seem to be secure enough, but might I get in trouble if someone sets a browser to disable cookies? Octavian
-
Slide Show option in Pages?
I'm a high school teacher who currently uses AppleWorks because it has the slide show feature which is most helpful and easier for me than converting everything to Keynote. Is there an option in Pages similar to the slide show feature in AppleWorks?
-
Identity Center LDAP view through VDS, how to show assignments validity
Hello everyone, we are running idm 7.2 sp8 and we are trying to provide an LDAP view of our productive identity store through the VDS so that a third party product can read our data (especially assignments data). We also want the third party product
-
A Hopeless product from Blackberry : BB Torch 9860
Hi all ( & BB authorities,if reading), I don't understand how a company can let its product come in the market without even testing it. I am using Blackberry torch 9860 since one and a half year. This product has 'n' number of ridiculous and irritati