BIND 9.3.2 error in in zone
I have set up the necessary named.conf and forward/reverse/root files and get the following error after I kickoff the named daemon (in /var/adm/messages):
named[24451]: [ID 873579 daemon.notice] command channel listening on 127.0.0.1#953
named[24451]: [ID 873579 daemon.notice] couldn't add command channel ::1#953: address not available
I know this is probably not unique to solaris zones, but thought I would ask in this forum in case there are any issues with zones and bind of this nature.
hello,
just configure rndc
Run rndc-confgen, and put lines in /etc/rndc.conf and /etc/named.conf
Restart named and this message never appear.
I don't think it's zones-related
I ran named in zone and in global zone, and the message was the same
hth
gerard
Similar Messages
-
Error while creating zone inside Solaris 11.2 beta ldom
hi
i have installed solaris 11.2 in ldom (sparc ovm 3.1 )
and i try to create zone inside guest domain , it always give this error
Error occurred during execution of 'generated-transfer-3442-1' checkpoint.
Failed Checkpoints:
Checkpoint execution error:
Error refreshing publishers, 0/1 catalogs successfully updated:
Framework error: code: 28 reason: Operation too slow. Less than 1024 bytes/sec transfered the last 30 seconds
URL: 'http://pkg.oracle.com/solaris/beta/solaris/catalog/1/catalog.summary.C' (happened 4 times)
Installation: Failed. See install log at /system/volatile/install.3442/install_log
ERROR: auto-install failed.You might want to tune PKG_CLIENT_LOWSPEED_TIMEOUT before running "zoneadm install"
For example:
# export PKG_CLIENT_LOWSPEED_TIMEOUT=300 -
Shipment Cost Error - Departure & Destination Zone not found
Hi Gurus,
Good morning!
We hit one error in shipment cost generation.
When shipment costs are calculated using Transactions VI01 or VI04, the
system does not determine any freight conditions. During the
determination analysis of the shipment cost (SC) sub-items, the system
displays message VE102 "Access not made (initialized field)".
We noticed that the above message occurs due to missing information
retrieved by SAP on LZONEA (Departure zone) and LZONEZ (Destination
zone). This is uncommon as there is no change of config lately, and the
shipment cost document generation never hit such an error before.
Appreciate your advice
Thanks!
Regards,
Michelle LowDear Sunil,
Did you check Vendor Master data under Purchasing Organization data ?
Transactions:
XK01
XK02
XK03
Regards,
Naveen. -
Hello.
This program is supposed to pull values from a table using a loop, and in the loop, put the values in objects in a varray. I'm new to objects and am stumped trying to get this program to run. When I attempt to run it in SQL*Plus I get the following feedback:
Type created.
Type body created
SP2-0552: Bind variable "MY_VARRAY_EMP1" not declared.
I don't think I even need a bind variable. Any feedback would be appreciated. Here's the program:
-- Enable screen I/O
SET SERVEROUTPUT ON SIZE 1000000
SET VERIFY OFF
-- begin object spec
CREATE OR REPLACE TYPE employee3 AS OBJECT
ename CHAR (20 char),
empno NUMBER (4),
sal NUMBER (10),
MEMBER FUNCTION get_ename RETURN CHAR, MEMBER PROCEDURE set_ename (SELF IN OUT NOCOPY employee3),
MEMBER FUNCTION get_empno RETURN NUMBER, MEMBER PROCEDURE set_empno (SELF IN OUT NOCOPY employee3),
MEMBER FUNCTION get_sal RETURN NUMBER, MEMBER PROCEDURE set_sal (SELF IN OUT NOCOPY employee3)
-- begin object body
CREATE OR REPLACE TYPE BODY employee3 AS
-- gets
MEMBER FUNCTION get_ename RETURN CHAR IS
BEGIN
RETURN self.ename;
END;
MEMBER FUNCTION get_empno RETURN NUMBER IS
BEGIN
RETURN self.empno;
END;
MEMBER FUNCTION get_sal RETURN NUMBER IS
BEGIN
RETURN self.ename;
END;
-- sets
MEMBER PROCEDURE set_ename(SELF IN OUT employee3) IS
BEGIN
self.ename := ename;
END;
MEMBER PROCEDURE set_empno(SELF IN OUT employee3) IS
BEGIN
self.empno := empno;
END;
MEMBER PROCEDURE set_sal(SELF IN OUT employee3) IS
BEGIN
self.sal := sal;
END;
END;
DECLARE
TYPE emp_varray IS VARRAY(10) OF EMPLOYEE3;
my_varray_emp1 EMP_VARRAY;
-- List of EMPNO's in order of appearance in EMP table (for cross-referencing, single-line retrieval)
TYPE MYCREF_VARRAY IS VARRAY(10) OF NUMBER(4);
varray_mycref MYCREF_VARRAY := MYCREF_VARRAY(NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
this_object EMPLOYEE3;
-- make a variable to store one empno
thisno NUMBER(4);
-- make a counter
counter INT;
-- query variables for the set calls
q_ename CHAR(20 CHAR);
q_empno NUMBER(4);
q_sal NUMBER(10);
my_result INT;
BEGIN
--my_varray_emp1 := EMP_VARRAY(NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
-- Put the first 10 EMPNO's in my cref array
SELECT empno BULK COLLECT INTO varray_mycref FROM emp WHERE ROWNUM < 11;
-- Use a loop to retrieve the first 10 objects in the "emp" table and put them in the varray of objects
q_ename := NULL;
q_empno := NULL;
q_sal := NULL;
my_result := NULL;
this_object := NULL;
counter := 1;
FOR counter IN 1..10 LOOP
thisno := varray_mycref(counter);
this_object := my_varray_emp1(counter);
SELECT ename INTO q_ename FROM emp WHERE empno = thisno;
my_result := this_object.set_ename(q_ename, NULL);
SELECT empno INTO q_empno FROM emp WHERE empno = thisno;
my_result := this_object.set_empno(q_empno, NULL);
SELECT sal INTO q_sal FROM emp WHERE empno = thisno;
my_result := this_object.set_sal(q_sal, NULL);
END LOOP;
-- Use another loop to display the information in the reverse order.
FOR counter in REVERSE 1..10 LOOP
this_object =: my_varray_emp1(counter);
dbms_output.put_line((this_object.get_ename()) || CHR(9) || (this_object.get_empno()) || CHR(9) || (this_object.get_sal()));
END LOOP;
END;Cleaning up your code for errors and eliminating unnecessary complexity...
Add a user-defined constructor which takes all attributes and calls the "setter" procedures in one trip:
-- Enable screen I/O
set SERVEROUTPUT on size 1000000
set VERIFY off
-- begin object spec
create or replace type employee3 as object
ename CHAR (20 char),
empno NUMBER (4),
sal NUMBER (10),
constructor function employee3(
self in out nocopy employee3,
aEname in char,
aEmpNo in integer,
aSal in number
return self as result,
member function get_ename return CHAR, member procedure set_ename (SELF in out nocopy employee3, ename in char),
member function get_empno return NUMBER, member procedure set_empno (SELF in out nocopy employee3, empno in integer),
member function get_sal return NUMBER, member procedure set_sal (SELF in out nocopy employee3, sal in integer)
-- begin object body
create or replace type body employee3 as
constructor function employee3(
self in out nocopy employee3,
aEname in char,
aEmpNo in integer,
aSal in number
return self as result
is
begin
self.set_ename(aEname);
self.set_empno(aEmpNo);
self.set_sal(aSal);
return;
end;
-- gets
member function get_ename return CHAR is
begin
return self.ename;
end;
member function get_empno return NUMBER is
begin
return self.empno;
end;
member function get_sal return NUMBER is
begin
return self.sal;
end;
-- sets
member procedure set_ename(SELF in out employee3, ename in char) is
begin
self.ename := ename;
end;
member procedure set_empno(SELF in out employee3, empno in integer) is
begin
self.empno := empno;
end;
member procedure set_sal(SELF in out employee3, sal in integer) is
begin
self.sal := sal;
end;
end;
(Since I don't have EMP handy at the moment, create a simple view instead)
create or replace view emp
as
select 'EMP' || to_char(level) ename
, level + 100 empno
, DBMS_RANDOM.VALUE(25000,75000) sal
from DUAL
connect by
level <= 20
Get rid of your loop and individual SELECTs, and replace it with a single SELECT BULK COLLECT INTO...
declare
type emp_varray is varray(10) of EMPLOYEE3;
my_varray_emp1 EMP_VARRAY;
this_object EMPLOYEE3;
begin
-- No need for a loop. Use SELECT BULK COLLECT INTO, together with a user-defined constructor call (since the
-- user-defined constructor overrides the default constructor we need to call it using named-parameter notation):
select new employee3(
aEname => e.ename,
aEmpNo => e.empno,
aSal => e.sal
bulk collect into
my_varray_emp1
from emp e
where rownum <= 10;
-- Use another loop to display the information in the reverse order.
for counter in reverse 1..10 loop
this_object := my_varray_emp1(counter);
dbms_output.put_line((this_object.get_ename()) || chr(9) || to_char(this_object.get_empno()) || chr(9) || to_char(this_object.get_sal()));
end loop;
end;
EMP10
110 60110
EMP9
109 67485
EMP8
108 58242
EMP7
107 47597
EMP6
106 58995
EMP5
105 49098
EMP4
104 47406
EMP3
103 67574
EMP2
102 59663
EMP1
101 52929
PL/SQL procedure successfully completed.
Gerard -
Error when creating zone cluster
Hello,
I have the following setup: Solaris 11.2 x86, cluster 4.2. I have already configured the cluster and it's up and running. I am trying to create a zone cluster, but getting the following error:
>>> Result of the Creation for the Zone cluster(ztestcluster) <<<
The zone cluster is being configured with the following configuration
/usr/cluster/bin/clzonecluster configure ztestcluster
create
set zonepath=/zclusterpool/znode
set brand=cluster
set ip-type=shared
set enable_priv_net=true
add sysid
set root_password=********
end
add node
set physical-host=node2
set hostname=zclnode2
add net
set address=192.168.10.52
set physical=net1
end
end
add node
set physical-host=node1
set hostname=zclnode1
add net
set address=192.168.10.51
set physical=net1
end
end
add net
set address=192.168.10.55
end
java.lang.NullPointerException
at java.util.regex.Matcher.getTextLength(Matcher.java:1234)
at java.util.regex.Matcher.reset(Matcher.java:308)
at java.util.regex.Matcher.<init>(Matcher.java:228)
at java.util.regex.Pattern.matcher(Pattern.java:1088)
at com.sun.cluster.zcwizards.zonecluster.ZCWizardResultPanel.consoleInteraction(ZCWizardResultPanel.java:181)
at com.sun.cluster.dswizards.clisdk.core.IteratorLayout.cliConsoleInteraction(IteratorLayout.java:563)
at com.sun.cluster.dswizards.clisdk.core.IteratorLayout.displayPanel(IteratorLayout.java:623)
at com.sun.cluster.dswizards.clisdk.core.IteratorLayout.run(IteratorLayout.java:607)
at java.lang.Thread.run(Thread.java:745)
ERROR: System configuration error
As a result of a change to the system configuration, a resource that this
wizard will create is now invalid. Review any changes that were made to the
system after you started this wizard to determine which changes might have
caused this error. Then quit and restart this wizard.
Press RETURN to close the wizard
No errors in /var/adm/messages.
Any ideas?
Thank you!I must be doing some obvious, stupid mistake, cause I still get that "not enough space" error
root@node1:~# clzonecluster show ztestcluster
=== Zone Clusters ===
Zone Cluster Name: ztestcluster
zonename: ztestcluster
zonepath: /zcluster/znode
autoboot: TRUE
brand: solaris
bootargs: <NULL>
pool: <NULL>
limitpriv: <NULL>
scheduling-class: <NULL>
ip-type: shared
enable_priv_net: TRUE
resource_security: SECURE
--- Solaris Resources for ztestcluster ---
Resource Name: net
address: 192.168.10.55
physical: auto
--- Zone Cluster Nodes for ztestcluster ---
Node Name: node2
physical-host: node2
hostname: zclnode2
--- Solaris Resources for node2 ---
Node Name: node1
physical-host: node1
hostname: zclnode1
--- Solaris Resources for node1 ---
root@node1:~# clzonecluster install ztestcluster
Waiting for zone install commands to complete on all the nodes of the zone cluster "ztestcluster"...
clzonecluster: (C801046) Command execution failed on node node2. Please refer to the console for more information
clzonecluster: (C801046) Command execution failed on node node1. Please refer to the console for more information
But I have enough FS space. I increased the virtual HDD to 25GB on each node. After global cluster installation, I still have 16GB free on each node. During the install I constantly check the free space and it should be enough (only about 500MB is consumed by downloaded packages, which leaves about 15.5GB free). And every time the installation fails at "apply-sysconfig checkpoint"... -
SP2-0552: Bind variable not declared error. Any help please?
Hi Experts,
I have a question regarding the error that I am getting: SP2-0552: Bind variable "V_COUNT_TOT_BAL" not declared.
I have 'out' parameters declared in my procedure and executing the same from sql script as shown below:
set ver off
set serverout on
set linesize 8000
Declare
Variable v_count_dtl_bal NUMBER(10);
Variable v_updat_dtl_bal NUMBER(10);
Variable v_count_tot_bal NUMBER(10);
Begin
execute load_abc.insert_abc_bal(:v_count_dtl_bal,:v_updat_dtl_bal,:v_count_tot_bal);
End;
exit;
So, when this sql script runs it given me the above error. However, all the result looks good and there's no problem with the data or anything else that might be impacted. I suspect this error stems from the code in the sql script above.
Any idea what am I doing wrong?
Thanks in advance for any inputs.Thanks Frank. I still receive the same error if I follow your example or any of the ones explained above. This is what I am getting and still an error underneath:
Usage: VAR[IABLE] [ <variable> [ NUMBER | CHAR | CHAR (n [CHAR|BYTE]) |
VARCHAR2 (n CHAR) | NCHAR | NCHAR (n) |
NVARCHAR2 (n) | CLOB | NCLOB | REFCURSOR |
BINARY_FLOAT | BINARY_DOUBLE ] ]
Usage: VAR[IABLE] [ <variable> [ NUMBER | CHAR | CHAR (n [CHAR|BYTE]) |
VARCHAR2 (n CHAR) | NCHAR | NCHAR (n) |
NVARCHAR2 (n) | CLOB | NCLOB | REFCURSOR |
BINARY_FLOAT | BINARY_DOUBLE ] ]
Usage: VAR[IABLE] [ <variable> [ NUMBER | CHAR | CHAR (n [CHAR|BYTE]) |
VARCHAR2 (n CHAR) | NCHAR | NCHAR (n) |
NVARCHAR2 (n) | CLOB | NCLOB | REFCURSOR |
BINARY_FLOAT | BINARY_DOUBLE ] ]
SP2-0552: Bind variable "V_COUNT_TOT_BAL" not declared. -
ERROR when configuring zone clusters
Hi,
I have installed:
Oracle Solaris 10 9/10 s10x_u9wos_14a X86
Sun Cluster 3.2u3 for Solaris 10 i386
And I have my public network on the 11.0.0.0/24 network on e1000g2 on both nodes
vm1:
e1000g2: flags=9000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,NOFAILOVER> mtu 1500 index 2
inet 11.0.0.101 netmask ffffff00 broadcast 11.0.0.255
groupname sc_ipmp0
ether 8:0:27:6:df:2b
vm2:
e1000g2: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 11.0.0.102 netmask ffffff00 broadcast 11.0.0.255
groupname sc_ipmp0
ether 8:0:27:1d:69:a9
I am configuring a zone cluster with this config file:
#cat zonecreate.file
create -b
set zonepath=/zones/clzone1
set brand=cluster
set enable_priv_net=true
set autoboot=true
set ip-type=shared
add node
set physical-host=vm1
set hostname=clzone1
add net
set address=11.0.0.130
set physical=e1000g2
end
end
add sysid
set system_locale=C
set terminal=xterm
set security_policy=NONE
set nfs4_domain=dynamic
set timezone=MET
set root_password=/LB7sdasada
end
add node
set physical-host=vm2
set hostname=clzone2
add net
set address=11.0.0.131
set physical=e1000g2
end
end
commit
exit
# clzc configure -f zonecreate.file zc1
On line 32 of zonecreate.file:
zc1: CCR transaction error
Failed to assign a subnet for zone zc1.
zc1: failed to verify
zc1: CCR transaction error
zc1: CCR transaction error
Failed to assign a subnet for zone zc1.
zc1: failed to verify
zc1: CCR transaction error
Configuration not saved.
Any idea where the error is coming from ?Hi,
Thanks for your quick answer. I tried no luck..., just to point out I have normal native zone working ok on the same node:
[root@vm2:/zones]# zoneadm list -cv (10-14 16:47)
ID NAME STATUS PATH BRAND IP
0 global running / native shared
1 zone1 running /zones/zone1 native shared
Modified the File:
create -b
set zonepath=/zones/clzone1
set brand=cluster
set enable_priv_net=true
set autoboot=true
set ip-type=shared
add node
set physical-host=vm1
set hostname=clzone1
add net
set address=11.0.0.130/24
set physical=e1000g2
end
end
add sysid
set system_locale=C
set terminal=xterm
set security_policy=NONE
set nfs4_domain=dynamic
set timezone=MET
set root_password=/LB7qgfbUTwks
end
add node
set physical-host=vm2
set hostname=clzone2
add net
set address=11.0.0.131/24
set physical=e1000g2
end
end
commit
exit
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"zonecreate.file" 33 lines, 512 characters
[root@vm2:/zones]# clzc configure -f zonecreate.file zc1 (10-14 16:46)
On line 32 of zonecreate.file:
zc1: CCR transaction error
Failed to assign a subnet for zone zc1.
zc1: failed to verify
zc1: CCR transaction error
zc1: CCR transaction error
Failed to assign a subnet for zone zc1.
zc1: failed to verify
zc1: CCR transaction error
Configuration not saved.
[root@vm2:/zones]# (10-14 16:46)
[root@vm2:/zones]# cat /etc/netmasks (10-14 16:46)
# The netmasks file associates Internet Protocol (IP) address
# masks with IP network numbers.
# network-number netmask
# The term network-number refers to a number obtained from the Internet Network
# Information Center.
# Both the network-number and the netmasks are specified in
# "decimal dot" notation, e.g:
# 128.32.0.0 255.255.255.0
11.0.0.0 255.255.255.0
a full ifconfig, in case it helps:
[root@vm2:/zones]# ifconfig -a (10-14 16:46)
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
lo0:1: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
zone zone1
inet 127.0.0.1 netmask ff000000
e1000g0: flags=1008843<UP,BROADCAST,RUNNING,MULTICAST,PRIVATE,IPv4> mtu 1500 index 5
inet 172.16.0.130 netmask ffffff80 broadcast 172.16.0.255
ether 8:0:27:b2:3d:f
e1000g1: flags=1008843<UP,BROADCAST,RUNNING,MULTICAST,PRIVATE,IPv4> mtu 1500 index 4
inet 172.16.1.2 netmask ffffff80 broadcast 172.16.1.127
ether 8:0:27:25:f5:c8
e1000g2: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 11.0.0.102 netmask ffffff00 broadcast 11.0.0.255
groupname sc_ipmp0
ether 8:0:27:1d:69:a9
e1000g2:1: flags=9040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER> mtu 1500 index 2
inet 11.0.0.110 netmask ffffff00 broadcast 11.0.0.255
e1000g2:2: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
zone zone1
inet 11.0.0.107 netmask ffffff00 broadcast 11.0.0.255
e1000g2:3: flags=1001040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,FIXEDMTU> mtu 1500 index 2
inet 11.0.0.105 netmask ffffff00 broadcast 11.0.0.255
e1000g3: flags=69040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,STANDBY,INACTIVE> mtu 1500 index 3
inet 11.0.0.111 netmask ffffff00 broadcast 11.0.0.255
groupname sc_ipmp0
ether 8:0:27:9e:57:93
clprivnet0: flags=1009843<UP,BROADCAST,RUNNING,MULTICAST,MULTI_BCAST,PRIVATE,IPv4> mtu 1500 index 6
inet 172.16.4.2 netmask fffffe00 broadcast 172.16.5.255
ether 0:0:0:0:0:2
clprivnet0:1: flags=1009843<UP,BROADCAST,RUNNING,MULTICAST,MULTI_BCAST,PRIVATE,IPv4> mtu 1500 index 6
zone zone1
inet 172.16.4.66 netmask fffffe00 broadcast 172.16.5.255
Thnx again -
Hi All
I am using WCF-Custom (WS HTTP Binding) with Message security as Windows and using Reliable messaging in the send port. Its a static Port.
Every thing works fine as expected for the interface. ie the transaction is success. After a min of the transaction completion. I am getting the following error
01. I have not checked Propagate Fault message (as a solution provided in another blog)
02. Its a static Port
03. I am using reliable messaging
The below error events are logged in the event viewer
The Message Engine Encountered an error while suspending one or more Messages ( ID 5677)
Event ID : 5796
The transport proxy method MoveToNextTransport() failed for adapter WCF-Custom: Reason: “Messaging engine has no record of delivering the message to the adapter. This could happen if MoveToNextTransport() is called multiple times for the same message by
the adapter or if it is called for a message which was never delivered to the adapter by the messaging engine”. Contact the adapter vendor
Should I have log this issue with Microsoft through Service request ? or is there any work around is there. Unfortunate is I cannot remove the reliable messaging from the service.
ArunHi,
Is there any solution to this problem?
I am getting the same issue "The transport proxy method MoveToNextTransport() failed for adapter WCF-NetTcp: Reason: "Messaging engine has no record of delivering the message to the adapter.
This could happen if MoveToNextTransport() is called multiple times for the same message by the adapter or if it is called for a message which was never delivered to the adapter by the messaging engine". Contact the adapter vendor"
I checked this link http://rajwebjunky.blogspot.be/2011/09/biztalk-dynamic-request-response-port.html, but
in my case i am not using dynamic port.
In my scenario, i have a number of dehydrated orchestrations that become active every Monday 6:00 AM UTC and make to calls to a WCF service, to spread out the load I have implemented a load distribution logic where orchestrations send request to service
in every 1 minute (not at the same time). but still i get this error sometime.
I have opened a ticket with MS support but thought that someone might have already found the root cause.
Let me know if there is one.
Thanks,
Rahul
Best Regards, Rahul Dubey MCTS BizTalk Server -
Getting "Ordinal binding and Named binding cannot be combined" error
Hello,
I am getting following exception while calling stored produre:
*"Ordinal binding and Named binding cannot be combined"*
I am calling stored procedure with JDBC with 1 input parameter and 1 output parameters as mentioned below:
CallableStatement collableStat = connection.prepareCall("{ call sp_clnt_intermed_validation(?,?) };
// Registering In parameters
collableStat.setString("p_user_name", "SampleUser");
// Registering Out parameters
for(String paramKey : paramKeysSet) {
collableStat.registerOutParameter("p_success_flag", Types.VARCHAR);
// execute stored procedure
collableStat.execute();
Please guide.
Regards,
Akshay.
Edited by: 914678 on Feb 15, 2012 5:48 AMWhy is the registerOutParameter in a loop?
You don't state your DB version but as of 10g there is no support for named parameters for a PL/SQL function because there is no 'name' of the returned parameter. So use ordinal indexes for both parameters.
Instead of
collableStat.setString("p_user_name", "SampleUser");
collableStat.registerOutParameter("p_success_flag", Types.VARCHAR);use
collableStat.setString(1, "SampleUser");
collableStat.registerOutParameter(2, Types.VARCHAR);Next time post this in the JDBC forum.
Edited by: rp0428 on Feb 15, 2012 11:48 AM -
Smpatch/local zones, error even after zone uninstalled, fix
Solaris 10, Blade 1500 (silver)
Running smpatch update kept coming back with -
"This operation is not supported by this application for systems with local zones."
even though I had uninstalled the local zone I'd created earlier. I mv'ed the /etc/zones/index file to a new name and all was well. smpatch update completed successfully.
Just a tip,
DCorrect, however doing an uninstall on a zone would leave the above mentioned index file populated with the removed zone. zoneadm list -c would still report the zone as there until the index file was edited/replaced/removed.
It's most likely my limitied knowledge of zones, but I thought the uninstall was the way to fully remove a zone.
Anywho, it's just a tip ;)
D -
Getting Errors in PL/SQL - bad bind variable and encountered the symbol...
CREATE OR REPLACE TRIGGER update_QOH
AFTER INSERT ON ORDERLINE
FOR EACH ROW
DECLARE
QOH_PRODUCT PRODUCT.QOH%TYPE;
BEGIN
SELECT QOH INTO QOH_PRODUCT FROM PRODUCT WHERE :old.product_no = :new.product_no;
IF :new.QTY <= :old.QOH THEN
QOH = :old.QOH - :new.QTY
ELSE
send_email(ord_no, 'Backorder');
INSERT INTO BACKORDER (backorder_no_seq.NEXTVAL, :new.product_no, :new.qty, SYSDATE);
INSERT INTO PRODVENDOR (po_no_seq.NEXTVAL, :new.vendor_no, :new.product_no, :new.vend_qty, :new.shipping_method, SYSDATE, NULL, NULL, NULL);
END IF;
END;
Error(5,17): PLS-00049: bad bind variable 'OLD.QOH'
Error(6,7): PLS-00103: Encountered the symbol "=" when expecting one of the following: := . ( @ % ;
Error(6,9): PLS-00049: bad bind variable 'OLD.QOH'Hi,
Welcome to the forum!
I see 4 mistakes:
851543 wrote:
CREATE OR REPLACE TRIGGER update_QOH
AFTER INSERT ON ORDERLINE
FOR EACH ROW
DECLARE
QOH_PRODUCT PRODUCT.QOH%TYPE;
BEGIN
SELECT QOH INTO QOH_PRODUCT FROM PRODUCT WHERE :old.product_no = :new.product_no;
IF :new.QTY <= :old.QOH THEN
QOH = :old.QOH - :new.QTY(1) The variable qoh isn't declared.
(2) Did you mean the assignment operator, :=, rather than the equality operator, = ?
(3) An assignment statement must end with a semi-colon.
ELSE
send_email(ord_no, 'Backorder');(4) The variable ord_no isn't declared.
INSERT INTO BACKORDER (backorder_no_seq.NEXTVAL, :new.product_no, :new.qty, SYSDATE);
INSERT INTO PRODVENDOR (po_no_seq.NEXTVAL, :new.vendor_no, :new.product_no, :new.vend_qty, :new.shipping_method, SYSDATE, NULL, NULL, NULL);
END IF;
END;
/While you can reference :NEW and :OLD values in the trigger, it doesn't make any sense to reference the :OLD values. On an INSERT (which is the only time this trigger fires), all :OLD values are NULL.
>
Error(5,17): PLS-00049: bad bind variable 'OLD.QOH'
Error(6,7): PLS-00103: Encountered the symbol "=" when expecting one of the following: := . ( @ % ;
Error(6,9): PLS-00049: bad bind variable 'OLD.QOH'I don't believe the code you posted is causing these errors. Each of the errors mentioned above would cause a different message. Post the actual code and error messages.
Whenever you post a question, post all the code necessary for people to re-create the problem and test their ideas.
In this case, that means CREATE statements for any tables or sequences involved, INSERT statements for any tables that need rows (such as product) as they exist before the INSERT, some INSERT statements for orderline, and the contents of all the tables after each of those INSERTs.
Always say which version of Oracle you're using. -
Error using a binding to get current row data
Hi, from a previous post ( Calling a stored procedure ) that has been answered i have reached to this point and cant get go on:
i have a method declared on appmoduleimpl that calls to a procedure stored in the database and passes two parameters (one string, and one int)to the stored procedure.I drag and drop the method from the data control pallete to my jspx page.
the problem is that i want to get the value of two rows from the current record and set them as values from the parameters.
My Binding:
${bindings.Module3EmpIterator.currentRow.empno}
${bindings.Module3EmpIterator.currentRow.ename}
Note: Module3Emp its the name of my view
when i use this binding i get this error code
JBO-29000: javax.servlet.jsp.el.ELException: Unable to find a value for "ename" in object of class "oracle.jbo.server.ViewRowImpl" using operator "."
javax.servlet.jsp.el.ELException: Unable to find a value for "ename" in object of class "oracle.jbo.server.ViewRowImpl" using operator "."
JBO-29000: javax.servlet.jsp.el.ELException: Unable to find a value for "ename" in object of class "oracle.jbo.server.ViewRowImpl" using operator "."
javax.servlet.jsp.el.ELException: Unable to find a value for "ename" in object of class "oracle.jbo.server.ViewRowImpl" using operator "."
JBO-29000: javax.servlet.jsp.el.ELException: Unable to find a value for "ename" in object of class "oracle.jbo.server.ViewRowImpl" using operator "."
javax.servlet.jsp.el.ELException: Unable to find a value for "ename" in object of class "oracle.jbo.server.ViewRowImpl" using operator "."
Thanks.Here i store a pl/sql code in a method (At AppModuleImpl Level)
public void callProc1 (String ename,
int empno)
PreparedStatement plsqlBlock = null;
// String statement = "BEGIN p_proc1(:1,:2); END;";
String statement = "BEGIN INSERT INTO p_proc (ID, dato, numero) VALUES (s_proc.NEXTVAL, :1, :2); END;";
plsqlBlock = getDBTransaction().createPreparedStatement(statement,0);
try
plsqlBlock.setString(1,ename);
plsqlBlock.setInt(2,empno);
plsqlBlock.execute();
catch (SQLException sqlException)
throw new SQLStmtException(CSMessageBundle.class,
CSMessageBundle.EXC_SQL_EXECUTE_COMMAND,
statement,
sqlException);
finally
try
plsqlBlock.close();
catch (SQLException e)
// We don't really care if this fails, so just print to the console
e.printStackTrace();
now i expose the method and set the variables in the page definition.
<methodAction id="callProc1"
InstanceName="Module3AppModuleDataControl.dataProvider"
DataControl="Module3AppModuleDataControl"
MethodName="callProc1" RequiresUpdateModel="true" Action="999"
IsViewObjectMethod="false">
<NamedData NDName="ename"
NDValue="${bindings.Module3EmpIterator.currentRow.ename}"
NDType="java.lang.String"/>
<NamedData NDName="empno"
NDValue="${bindings.Module3EmpIterator.currentRow.empno}"
NDType="int"/>
(that does it automatically when i drag and drop the method to the jspx page).
This is the code in the command button inside the jspx page
<af:commandButton actionListener="#{bindings.callProc1.execute}"
text="callProc1"
disabled="#{!bindings.callProc1.enabled}"/>
When i click the button, the method should insert the selected column on a new table that i created But it doesn't. How i can do it, or how i can see the output of those values (bindings.Module3EmpIterator.currentRow.empno... etc.)
Note: when i hardcode the values and put Hello instead of bindings.Module3EmpIterator.currentRow.empno it inserts into the table and works everything fine. -
Error messages during booting of Solaris 8 zone
I have installed a Solaris 8 zone from a flash archive of a Solaris 8 server that is currently in production. I get no errors during the installation of the zone and when I boot the zone I get the following messages on the zone console:
SunOS Release 5.8 Version Generic_Virtual 64-bit
Copyright 1983-2000 Sun Microsystems, Inc. All rights reserved
Hostname: madison1xl
The system is coming up. Please wait.
NIS domainname is eam.rjf.com
operation failed, Not owner
device name given is not a stream device (No such device or address)
device name given is not a stream device (No such device or address)
device name given is not a stream device (No such device or address)
device name given is not a stream device (No such device or address)
device name given is not a stream device (No such device or address)
device name given is not a stream device (No such device or address)
device name given is not a stream device (No such device or address)
device name given is not a stream device (No such device or address)
device name given is not a stream device (No such device or address)
device name given is not a stream device (No such device or address)
device name given is not a stream device (No such device or address)
device name given is not a stream device (No such device or address)
device name given is not a stream device (No such device or address)
device name given is not a stream device (No such device or address)
device name given is not a stream device (No such device or address)
device name given is not a stream device (No such device or address)
operation failed, Not owner
operation failed, Not owner
operation failed, Not owner
operation failed, Not owner
operation failed, Not owner
operation failed, Not owner
operation failed, Not owner
operation failed, Not owner
operation failed, Not owner
operation failed, Not owner
Sun BluePrints network security settings applied.
syslog service starting.
I am not sure what is causing these errors. The zone appears to be running properly, but I am concerned that something is not starting during the boot process. /var/adm/messages file does not show any errors. Thanks for any help you can give me.Thanks. That helped alot. I found out that all the messages came from a start up script named nddconfig. Since the ngz cannot change anything about devices this was causing a lot of errors. I stopped the script from starting and now do not receive any errors.
-
NFS server unmount error w/ bind-mount
Hello, please let me know if I should change the thread title.
so I'm sharing a folder through NFS between two arch-linux pc's.
Host1 is my desktop, Host2 is my laptop.
I boot up my computer, rpcbind is started on boot-up
I launch the server on Host2
I launch the client on Host1
on Host2, I do a bind-mount from some directory to the one I'm exporting
I then unmount it, and it unmounts w/o error
then I redo the bind-mount
then, on the client, I mount the server's NFS share to some directory
then, on the client, I unmount it w/o error
then, on the server, I try to unmount the bind-mounted directory, but it won't, says it's "busy"
if I restart the server, then I can unmount the bind-mount w/o error, but I believe it should work without me having to restart the server every time
I want to bind a different directory to the exported directory.
server
$ systemctl start nfs-server
client
$ systemctl start nfs-client.target
server
$ mount test/ nfs/ --bind
client
$ mount Host1:/srv/nfs /mnt/nfs -t nfs
$ umount /mnt/nfs
server
$ umount /srv/nfs
umount: /srv/nfs: target is busy
(In some cases useful info about processes that
use the device is found by lsof(8) or fuser(1).)
the output of
$ lsof | grep /srv/nfs
$ lsof | grep /srv
did not show anything that had either the substring "nfs" or "rpc" in it...
below is the status of both hosts rpcbind @startup (they were identical)
$ systemctl status rpcbind
rpcbind.service - RPC bind service
Loaded: loaded (/usr/lib/systemd/system/rpcbind.service; static)
Active: active (running) since Sat 2014-12-06 15:51:38 PST; 46s ago
Process: 262 ExecStart=/usr/bin/rpcbind -w ${RPCBIND_ARGS} (code=exited, status=0/SUCCESS)
Main PID: 264 (rpcbind)
CGroup: /system.slice/rpcbind.service
└─264 /usr/bin/rpcbind -w
Dec 06 15:51:38 BabaLinux systemd[1]: Started RPC bind service.
below is the status of the nfs-server @ startup then after it was launched
$ systemctl status nfs-server
nfs-server.service - NFS server and services
Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; disabled)
Active: inactive (dead)
$ systemctl status nfs-server
nfs-server.service - NFS server and services
Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; disabled)
Active: active (exited) since Sat 2014-12-06 15:53:44 PST; 21s ago
Process: 483 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS (code=exited, status=0/SUCCESS)
Process: 480 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
Main PID: 483 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/nfs-server.service
Dec 06 15:53:44 BabaLinux exportfs[480]: exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "NeoZelux:/srv/nfs".
Dec 06 15:53:44 BabaLinux exportfs[480]: Assuming default behaviour ('no_subtree_check').
Dec 06 15:53:44 BabaLinux exportfs[480]: NOTE: this default has changed since nfs-utils version 1.0.x
Dec 06 15:53:44 BabaLinux systemd[1]: Started NFS server and services.
below is the status of the nfs-client @ startup then after it was launched
$ systemctl status nfs-client.target
nfs-client.target - NFS client services
Loaded: loaded (/usr/lib/systemd/system/nfs-client.target; disabled)
Active: inactive (dead)
$ systemctl status nfs-client.target
nfs-client.target - NFS client services
Loaded: loaded (/usr/lib/systemd/system/nfs-client.target; disabled)
Active: active since Sat 2014-12-06 15:54:18 PST; 4s ago
Dec 06 15:54:18 NeoZelux systemd[1]: Starting NFS client services.
Dec 06 15:54:18 NeoZelux systemd[1]: Reached target NFS client services.NFSv4 operates in "namespaces" and you're basically messing with it's brain by bind-mounting (and unmounting) within the exported directory while it's live, without using the exportfs command (either via add/remove in /etc/exports or just putting it all on the commandline). You'll want to read up on section 7 of the RFC:
https://tools.ietf.org/html/rfc5661
In essence you're confusing it's brain -- when you add a bind mount, re-export and vice versa -- when removing it, deconfigure and re-export. It still might not work but you can try -- like Spider.007 I question your technique and methodology. It just feels like you're trying to do something... "wrong" here that should be designed in a better way. -
When I am trying to run my code, the following error is being displayed
Starting Sever...
Binding...
Error: java.rmi.ConnectException: Connection refused to host: 169.254.135.47; nested exception is:
java.net.ConnectException: Connection refused: connect
Anybody kindly help me out of this problem.Thnx anyway...got the answer from
http://forum.java.sun.com/thread.jspa?threadID=710602&tstart=165
Maybe you are looking for
-
NET8의 LOGGING AND TRACE관련 PARAMETER에 대한 Q & A
제품 : SQL*NET 작성날짜 : 1999-07-30 NET8의 LOGGING AND TRACE관련 PARAMETER에 대한 Q & A ================================================== PURPOSE NET8의 LOGGING AND TRACE관련 PARAMETER에 대해 알아 보도록한다 Explanation 1. NET8에서 trace를 왜 사용하고 어떤 component들에 trace를 할 수 있나요
-
Is it possible to use variable with interval in BEX for filter or pl funct.
Hi, we have filters in which variables with interval are being used, as well as planning functions in which a variable with interval should be used. In the planning modeler everythings works fine. But I have problems to fill values for these type of
-
Garbled text in Safari after installing Lion
After installing Lion, Safari now displays many pages with what appears to be missing font, garbled text. Many sites I've visted in the past (including my bank) just have "AAAAAAAA" wherever there's supposed to be text. My first thought is either mis
-
How to enable logging of changes (SA38)
Hi everyone! I am checking the change log for a program (RSVTPROT) for table MARV. However, there was no logs. When I checked the status (Logging: Display status button), the message is this: Logging in system XXX Logging is switched off Logging of t
-
Cannot find JhsModelCreate.sql
Hi, In order to create a dynamic menu structure, JHS provides scripts namely JhsModelCreate.sql and JhsModelDrop.sql. However, these scripts are not there in my JHS folder or anywhere else in my system. I have JHS 10.1.3.1 I tried searching for the s