Reg:listner problem
Hi,
Oracle Version : 10.2.0.1
Operating System : windows Xp
When i start the listener it is showing that listener is not supports no servies.what is the changes i want to do .Here is my listener file output and tnsnames.ora file
LISTENER
# listener.ora Network Configuration File: E:\oracle\product\10.2.0\db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER_rman =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = E:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = poor)
(ORACLE_HOME = E:\oracle\product\10.2.0\db_1))
(SID_DESC =
(SID_NAME = prasad)
(ORACLE_HOME = E:\oracle\product\10.2.0\db_1)
(SID_DESC =
(SID_NAME = stand)
(ORACLE_HOME = E:\oracle\product\10.2.0\db_1)
(SID_DESC =
(SID_NAME = oracle)
(ORACLE_HOME = E:\oracle\product\10.2.0\db_1)
LISTENER_rman =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.85)(PORT = 1521))
)TNSNAMES.ORA
# tnsnames.ora Network Configuration File: E:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
# tnsnames.ora Network Configuration File:E:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
ORACLE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.85)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = oracle)
RCLON =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.85)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = RCLON)
(UR = A)
stand =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.85)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = stand)
(UR = A)
poor =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.85)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = poor)
(UR = A)
PRASAD =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.85)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = prasad)
(UR = A)
POORSTAND =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.85)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = poorstand)
(UR = A)
VTLDB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.3.200)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = VTLDB)
(UR = A)
)lsnrctl staus
C:\Documents and Settings\poornaprasads>lsnrctl start
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 15-SEP-2009 12:54:07
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Starting tnslsnr: please wait...
TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
System parameter file is E:\oracle\product\10.2.0\db_1\network\admin\listener.ora
Log messages written to E:\oracle\product\10.2.0\db_1\network\log\listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=vtlsys2-85.virinchi.com)(PORT=1521)))
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
Start Date 15-SEP-2009 12:54:12
Uptime 0 days 0 hr. 0 min. 5 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File E:\oracle\product\10.2.0\db_1\network\admin\listener.ora
Listener Log File E:\oracle\product\10.2.0\db_1\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=vtlsys2-85.virinchi.com)(PORT=1521)))
The listener supports no services
The command completed successfully
C:\Documents and Settings\poornaprasads>Regards,
Poorna
Hi,
As you mentioned i stop running listner and started the new listner but it is showing the same error.Here is my log file output.
TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 15-SEP-2009 14:12:04
Copyright (c) 1991, 2005, Oracle. All rights reserved.
System parameter file is E:\oracle\product\10.2.0\db_1\network\admin\listener.ora
Log messages written to E:\oracle\product\10.2.0\db_1\network\log\listener_rman.log
Trace information written to E:\oracle\product\10.2.0\db_1\network\trace\listener_rman.trc
Trace level is currently 0
Started with pid=4944
TNS-01151: Missing listener name, LISTENER_rman, in LISTENER.ORA
TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 15-SEP-2009 14:13:11
Copyright (c) 1991, 2005, Oracle. All rights reserved.
System parameter file is E:\oracle\product\10.2.0\db_1\network\admin\listener.ora
Log messages written to E:\oracle\product\10.2.0\db_1\network\log\listener_rman.log
Trace information written to E:\oracle\product\10.2.0\db_1\network\trace\listener_rman.trc
Trace level is currently 0
Started with pid=4216
TNS-01151: Missing listener name, LISTENER_rman, in LISTENER.ORA
TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 15-SEP-2009 14:41:46
Copyright (c) 1991, 2005, Oracle. All rights reserved.
System parameter file is E:\oracle\product\10.2.0\db_1\network\admin\listener.ora
Log messages written to E:\oracle\product\10.2.0\db_1\network\log\listener_rman.log
Trace information written to E:\oracle\product\10.2.0\db_1\network\trace\listener_rman.trc
Trace level is currently 0
Started with pid=4740
TNS-01151: Missing listener name, LISTENER_rman, in LISTENER.ORA
TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 15-SEP-2009 14:42:32
Copyright (c) 1991, 2005, Oracle. All rights reserved.
System parameter file is E:\oracle\product\10.2.0\db_1\network\admin\listener.ora
Log messages written to E:\oracle\product\10.2.0\db_1\network\log\listener_rman.log
Trace information written to E:\oracle\product\10.2.0\db_1\network\trace\listener_rman.trc
Trace level is currently 0
Started with pid=1332
TNS-01151: Missing listener name, LISTENER_rman, in LISTENER.ORA
TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 15-SEP-2009 14:43:02
Copyright (c) 1991, 2005, Oracle. All rights reserved.
System parameter file is E:\oracle\product\10.2.0\db_1\network\admin\listener.ora
Log messages written to E:\oracle\product\10.2.0\db_1\network\log\listener_rman.log
Trace information written to E:\oracle\product\10.2.0\db_1\network\trace\listener_rman.trc
Trace level is currently 0
Started with pid=3584
TNS-01151: Missing listener name, LISTENER_rman, in LISTENER.ORA
C:\Documents and Settings\poornaprasads>lsnrctl stop
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 15-SEP-2009 14:41:36
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
The command completed successfully
C:\Documents and Settings\poornaprasads>lsnrctl start LISTENER_rman
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 15-SEP-2009 14:41:40
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Starting tnslsnr: please wait...
TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
System parameter file is E:\oracle\product\10.2.0\db_1\network\admin\listener.ora
Log messages written to E:\oracle\product\10.2.0\db_1\network\log\listener_rman.log
TNS-01151: Missing listener name, LISTENER_rman, in LISTENER.ORA
Listener failed to start. See the error message(s) above...
{coded}
Similar Messages
-
Hi friends,
I am in serious problem. I am using AIX, oracle 9, sap4.7
I restore the data files ,orarach,redolog from PRD server to Dummy PRD server(both have same SID & same palteform)
now when i start the listner than it gives a error
Started with pid=692428
Error listening on: (ADDRESS=(PROTOCOL=tcp)(PORT=1521))
TNS-12542: TNS:address already in use
TNS-12560: TNS:protocol adapter error
TNS-00512: Address already in use
IBM/AIX RISC System/6000 Error: 67: Address already in use
And when i reboot the system than it gives an error:-
tegaprod:oraprd 1> lsnrctl start
exec(): 0509-036 Cannot load program lsnrctl because of the following errors:
0509-130 Symbol resolution failed for lsnrctl because:
0509-136 Symbol __pth_init (number 296) is not exported from
dependent module /usr/lib/libpthreads.a[shr_xpg5_64.o].
0509-192 Examine .loader section symbols with the
'dump -Tv' command.
I ALSO posted this thread on unix form .
Link: [url]listner problem
Please help me
Thanks & Regards
Karan
Edited by: karan Singh on May 9, 2008 1:10 PMHi
check Note 723147 - ORA-12542: TNS: address already in use
regards,
kaushal -
Reg Add problem. Convert from .reg to reg add script
Hi. I'm making a registry script so I can add elements to the registry.
The script is working for DWORDS but I cant get the last one to work.
The registry exportet code I wan't to make a Reg ADD line from is:
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\BrowserEmulation\ClearableListData]
"UserFilter"=hex:41,1f,00,00,53,08,ad,ba,01,00,00,00,2c,00,00,00,01,00,00,00,\
01,00,00,00,0c,00,00,00,9c,26,40,27,0c,f5,cf,01,01,00,00,00,07,00,6e,00,69,\
00,74,00,6f,00,2e,00,6e,00,6f,00
I've tried to google and have tried several reg ADD lines, but should't it be something like this?
reg ADD "hku\temp\Software\Microsoft\Internet Explorer\BrowserEmulation\ClearableListData" /v UserFilter /t REG_BINARY /d
41,1f,00,00,53,08,ad,ba,01,00,00,00,2c,00,00,00,01,00,00,00,\
01,00,00,00,0c,00,00,00,9c,26,40,27,0c,f5,cf,01,01,00,00,00,07,00,6e,00,69,\ 00,74,00,6f,00,2e,00,6e,00,6f,00 /f
Its the "\" that's get messy, don't know how to write reg Add line with that.
If I skip that line the script works, I can then run the .reg file above to complete the reg. settings, but that won't solve my problem.Those backslashes just indicate line continuations in the .reg file. You don't need them in your reg add version; the binary data can be placed all on one line.
If I remember correctly, you don't need the commas when using "reg add" either, so just this should work. I've used environment variables here to split it up across multiple lines and make it more readable, but that's not actually required:
set REGKEY="hku\temp\Software\Microsoft\Internet Explorer\BrowserEmulation\ClearableListData"
set REGDATA=411f00005308adba010000002c00000001000000010000000c0000009c2640270cf5cf010100000007006e00690074006f002e006e006f00
reg add %REGKEY% /v UserFilter /t REG_BINARY /d %REGDATA% -
Reg: Query Problem for New Posting Period
Hi Xperts,
While I try to Map the A/P Invoices with their respective Outgoing Payment,
I used the following Query and it's Query Printlayout
SELECT T0.DocNum [Payment#], T0.DocDate [Payment Date],
T0.CardCode, T0.CardName, T1.InvoiceId, T2.DocNum [AP Inv#],
T2.NumatCard [Bill No.], T2.DocDate [Bill Date], T1.selfInv,
T1.SumApplied, T1.WtAppld, T0.NoDocsum
FROM [dbo].[OVPM] T0 INNER JOIN
[dbo].[VPM2] T1 ON T1.[DocNum] = T0.DocNum
INNER JOIN [dbo].[OPCH] T2 ON T2.[DocEntry] = T1.DocEntry
WHERE T0.Cardname='[%0]' and T0.DocDate='[%1]' and
T0.DocNum='[%2]'
I got the above query from our Expert Mr.Sambath only.
Now what is the problem is the query is retrieving the payment details of old Posting Period only and not the current posting period.
In detail, I used 'Primary' Series for FY08-09, Period indicator 'Default'
Now I'm using 'Primary1' Series for FY09-10, Period indicator '0910'
Thanx in adv.
Regards,
BalaHi Bala,
Looking at your query, it is not query issue ,it is your data issue.
Please check if you have data in VPM2 table which is bank transfer payment method
Thank you
Bishal
Edited by: Bishal Adhikari on Apr 9, 2009 8:48 AM -
Reg:Mapping problem in XI
Dear Friends,
My scenario is IDOC to IDOC.When ever sales order is created in ECC 5.0. New purchase order will be created in ECC 6.0.
Configuration has been done and the scenario is working fine for single record.Multiple line Items are not being updated in Purchase order.Cause of EAN field data overwrites the article master field data for multiple records.and getting the error msg as material is not available(But this is EAN no).If I send single SO with one line Item new PO got created.
This has to be done in mapping only.Pls revert,How to do this in Mapping.
Thanks in advance.
Best Regards,
Naresh.KHi,
As per the given query I am still doubtful that changing the occurance of IDOC will solve this problem.
Changing the occurance of IDOC will create the multiple IDOCs. But the requirment is for multiple line items under single SO ie.e under one IDOC.
This is absolutly the mapping part where the occurance of the line items are misplaced.
Please can you provide the source and target idoc structure with expected output and current output (missplaced the values due to occurance).
This will help to try for the solution.
thanks
Swarup -
Hi,
Oracle Version:11.2.0.1.0
Operating system:Linux
We just installed the 11g software and created a database but unable to connect the database through client .
status:Failure-Test failed:Listener refused the connection with the following error:ORA-12505,Tns:listner does not currently know of sid given in connect descriptor The connection descriptor used by the client was:192.168.3.14.........Here is my lisnter.ora file.
# listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER1 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oel5-11gr2.localdomain)(PORT = 1521))
ADR_BASE_LISTENER1 = /u01/app/oracle
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.3.143)(PORT = 1521))
ADR_BASE_LISTENER = /u01/app/oracle[oracle@virdemo app]$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 14-DEC-2009 04:07:57
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Starting /u01/app/oracle/product/11.2.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/virdemo/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.3.143)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 14-DEC-2009 04:07:57
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/virdemo/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.3.143)(PORT=1521)))
The listener supports no services
The command completed successfully
and my tnsnames.ora# tnsnames.ora Network Configuration File: /u01/app/oracle/product/11.2.0/db_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
CAPTURE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oel5-11gr2.localdomain)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = capture)Hi,
I was able to start the listener but unable to connect to database through client and i am getting error like this.
status:Failure-Test failed:Listener refused the connection with the following error:ORA-12505,Tns:listner does not currently know of sid given in connect descriptor The connection descriptor used by the client was:192.168.3.14.........Here is my listner.ora file
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.3.143)(PORT = 1521))
[oracle@virdemo admin]$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 14-DEC-2009 06:45:38
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Starting /u01/app/oracle/product/11.2.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/virdemo/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.3.143)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 14-DEC-2009 06:45:38
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/virdemo/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.3.143)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
[oracle@virdemo admin]$ -
Reg: code problem in Function module
Hi Friends,
I am facing problem while developing Function module.
i declared following things in Import.
""Local Interface:
*" IMPORTING
*" VALUE(SOURCETABLETXT) TYPE STRING
*" VALUE(SELECTTXT) TYPE STRING
*" VALUE(SOURCEINFOOBJECT) TYPE STRING
*" REFERENCE(ITAB_OUTTAB)
*" REFERENCE(ITAB_SOURCEPAK)
In source code writen as,
DATA DREF1 TYPE REF TO DATA.
FIELD-SYMBOLS: <ITAB_SPACK> TYPE ANY TABLE,
<WA1> TYPE ANY,
TYPES: BEGIN OF SOURCEIOJ,
SOURCEINFOOBJECT(72) TYPE C ,
END OF SOURCEIOJ.
DATA: ITAB_SOURCEIOJ TYPE TABLE OF SOURCEIOJ.
DATA: WA_SOURCEIOJ LIKE LINE OF ITAB_SOURCEIOJ.
ASSIGN ITAB_SOURCEPAK->* TO <ITAB_SPACK>.
CREATE DATA DREF1 LIKE LINE OF <ITAB_SPACK>.
ASSIGN DREF1->* TO <WA1>.
LOOP AT <ITAB_SPACK> assigning <WA1>.
READ TABLE ITAB_SOURCEIOJ INTO WA_SOURCEIOJ WITH KEY SOURCEINFOOBJECT = <WA1>-SOURCEINFOOBJECT.
IF SY-SUBRC <> 0.
WA_SOURCEIOJ-SOURCEINFOOBJECT = <WA1>-SOURCEINFOOBJECT.
INSERT WA_SOURCEIOJ INTO TABLE ITAB_SOURCEIOJ.
ENDIF.
ENDLOOP.
While checking i am getting error as The data object "<WA1>" has no structure and therefore no componentcalled "SOURCEINFOOBJECT". called "SOURCEINFOOBJECT".
SOURCEINFOOBJECT is not field in internal table which passing as reference and hence not in WA1.
But the input field which i give to SOURCEINFOOBJECT while calling the FM, that input field is the part of the intenal table
<ITAB_SPACK>, which ref of ITAB_SOURCEPAK passing to FM.
Please give some idea how to handle this.
Regards
MRKHey,
you declared <wa> as field symbol, so it won't contain the field that you are trying to read. Go through the following; it may help you.
Loop at <ITAB_SPACK> assigning <WA1>.
do.
assign component sy-index of structure <wa1> to <dyn_field>.
if sy-subrc <> 0.
exit.
endif.
if sy-index = 1.
WA_SOURCEIOJ-SOURCEINFOOBJECT = <dyn_field>.
else.
WA_SOURCEIOJ-SOURCEINFOOBJECT = <dyn_field>.
endif.
enddo.
endloop.
with regards
Mahesh -
Reg : Knapsack problem - [Off Topic] -
Hi All,
Few days back, there was a post which was a practical implementation of the 'Knapsack Problem'.
And, I remember somebody actually posted a query which solved this.
Can anybody please give me the link for it?
Or, if have the query?
I searched the OTN but not getting the post.
Thanks.
Ranit B.SQL isn't the best tool for the task, but.... And there are many variations of knapsack task. Anyway, below is combination (MODEL + hierarchical) solution I posted on one of SQL forums while back for the following knapsack task:
There are n items. We know weight and cost of each item. Task is to fill knapsack with items so that total weight doesn't exceed knapsack weight capacity and get max possible total cost.
DROP TABLE knapsack PURGE;
CREATE TABLE knapsack(
item_number NUMBER PRIMARY KEY,
volume NUMBER NOT NULL,
value NUMBER NOT NULL
INSERT INTO knapsack VALUES(1, 77, 2);
INSERT INTO knapsack VALUES(2, 99, 1);
INSERT INTO knapsack VALUES(3, 19, 3);
INSERT INTO knapsack VALUES(4, 91, 1);
INSERT INTO knapsack VALUES(5, 6, 3);
INSERT INTO knapsack VALUES(6, 6, 1);
INSERT INTO knapsack VALUES(7, 3, 1);
INSERT INTO knapsack VALUES(8, 92, 6);
COMMIT;
VARIABLE capacity NUMBER;
EXEC :capacity := 92;
SELECT 'Will take items ' ||
regexp_replace(
trim(sys_connect_by_path(case max_item_mask when 0 then null else item_number end,' ')),
' +',
) ||
'. Total value will be ' || max_total_value || ' (' ||
regexp_replace(
trim(sys_connect_by_path(case max_item_mask when 0 then null else value end,' ')),
' +',
'+'
) ||
'). Total volume will be ' || max_total_volume || ' (' ||
regexp_replace(
trim(sys_connect_by_path(case max_item_mask when 0 then null else volume end,' ')),
' +',
'+'
) || '). Total iteration count is ' || (iteration_cnt + 1) || '.' best_pick
FROM (
SELECT i item_number,
max_item_mask,
max_total_value,
max_total_volume,
value,
volume,
iteration_cnt
FROM knapsack
MODEL
DIMENSION BY(
item_number i
MEASURES(
volume,
value,
count(*) over() cnt,
0 item_mask,
0 current_volume,
0 current_value,
0 total_volume,
0 total_value,
0 max_total_value,
0 max_total_volume,
0 max_item_mask,
1 item_set_mask,
0 iteration_cnt
RULES ITERATE(1e9) UNTIL(item_set_mask[1] >= power(2,cnt[1]))
item_mask[any] = bitand(item_set_mask[1],power(2,cv(i) - 1)),
current_volume[any] = sign(item_mask[cv(i)]) * volume[cv(i)],
current_value[any] = sign(item_mask[cv(i)]) * value[cv(i)],
total_volume[1] = sum(current_volume)[any],
total_value[1] = sum(current_value)[any],
max_item_mask[any] = case
when total_volume[1] <= :capacity
and
max_total_value[1] < total_value[1]
then item_mask[cv()]
else max_item_mask[cv()]
end,
max_total_volume[any] = case
when total_volume[1] <= :capacity
and
max_total_value[1] < total_value[1]
then total_volume[1]
else
max_total_volume[1]
end,
max_total_value[any] = case
when total_volume[1] <= :capacity
then greatest(max_total_value[1],total_value[1])
else max_total_value[1]
end,
item_set_mask[1] = case
when total_volume[1] >= :capacity
then item_set_mask[1] + min(case when item_mask > 0 then item_mask else null end)[any]
else item_set_mask[1] + 1
end,
iteration_cnt[any] = iteration_number
WHERE CONNECT_BY_ISLEAF = 1
START WITH item_number = 1
CONNECT BY item_number = PRIOR item_number + 1
BEST_PICK
Will take items 3, 5, 6, 7. Total value will be 8 (3+3+1+1). Total volume will b
e 34 (19+6+6+3). Total iteration count is 59.
SQL> Keep in mind, solution is "optimized" to skip combinations when we already are at or over max capacity.
SY. -
OMS job - start listner problem
Dear all
i am trying to create a simple job to start listener on target machine
target machine :
OS : linux redhat 4.5
oracle database :10.2.0.3
database home : /u01/app/oracle/product/10g
agent : 10.2.0.5.0
agent home : /u01/app/agent10g
so
i created a job to start listener
os command , listner , %OracleHome%/bin/lsnrctl start ........
when the listener is already up
it return
Output Log
LSNRCTL for Linux: Version 10.2.0.3.0 - Production on 28-JUN-2010 12:53:11
Copyright (c) 1991, 2006, Oracle. All rights reserved.
TNS-01106: Listener using listener name LISTENER has already been started
and its normal
but when listener is down
it return
Output Log
LSNRCTL for Linux: Version 10.2.0.3.0 - Production on 28-JUN-2010 11:27:18
Copyright (c) 1991, 2006, Oracle. All rights reserved.
Starting /u01/app/agent10g/bin/tnslsnr: please wait...
TNS-12545: Connect failed because target host or object does not exist
TNS-12560: TNS:protocol adapter error
TNS-00515: Connect failed because target host or object does not exist
Linux Error: 2: No such file or directory
when i try to create job to see listener status
os command , listner , %OracleHome%/bin/lsnrctl status , ........
it return
LSNRCTL for Linux: Version 10.2.0.3.0 - Production on 28-JUN-2010 13:03:37
Copyright (c) 1991, 2006, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.12.100.32)(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC0)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 2: No such file or directory
and its correct
please can any one tell me way the OMS job read "agent home" instead of "database home" when i just try to start the listener and its work correct when ask for statustarget.xml is
<Targets AGENT_TOKEN="1c8043388202dfd33a5340281755d2d7e7a93dc1">
<Target TYPE="oracle_emd" NAME="HOBANKST:3872"/>
<Target TYPE="host" NAME="HOBANKST"/>
<Target TYPE="oracle_listener" NAME="LISTENER_HOBANKST">
<Property NAME="ListenerOraDir" VALUE="/u01/app/oracle/product/10g/network/admin"/>
<Property NAME="LsnrName" VALUE="LISTENER"/>
<Property NAME="Machine" VALUE="HOBANKST"/>
<Property NAME="OracleHome" VALUE="/u01/app/oracle/product/10g"/>
<Property NAME="Port" VALUE="1521"/>
</Target>
<Target TYPE="oracle_database" NAME="HOBANKST">
<Property NAME="OracleHome" VALUE="/u01/app/oracle/product/10g"/>
<Property NAME="UserName" VALUE="dbsnmp"/>
<Property NAME="MachineName" VALUE="HOBANKST"/>
<Property NAME="Port" VALUE="1521"/>
<Property NAME="SID" VALUE="HOBANKST"/>
<Property NAME="password" VALUE="54b4de5c80204622" ENCRYPTED="TRUE"/>
<Property NAME="Role" VALUE="NORMAL"/>
</Target> -
Hi:
I am implementing action listner
htmlCommandButton.addActionListener(new ImgButtonListener());
public static class ImgButtonListener implements ActionListener <--------- code executes till here
@Override
public void processAction(ActionEvent ae)throws AbortProcessingException <---- This mehod is never called ???:(
System.out.println("I am button");
}Any Idea
Thankyou in advance,
dexterHi:
I figured it out. :P It might help other who deal with dynamic Faces. DON'T include form within form. Check html code generated by your program if is form within form then it is bad. get rid of all forms there can only be one form for all components. i.e.
TextInput custom control has its own form
You embedded this control in your page them it inherit its "form" tag too. Keep this in mind
Cheers,
DDexter -
Sub: Inbound delivery deletion - reg.,(Big problem)
Hi guru's,
I have got a bid problem can anybody guide me, the problem is we did Migo from one plant for the P.O., & for the same P.O., we did Inbound delivery also, for the P.O., we did IRL . Now we got Migo Doc., No. & inbound delivery No.s., also Now what is the procedure to delete inbound delivery No's., in this scenario., please.
thanks in advance
tulja singh.In bound Delivery can be deleted through VL32n
But before that u have to reverse IV & Migo -
Hi Experts.
I have designed my RTF such that on 1st page i am including Purchase order details and have included the respective footer for it, after publishing the PO report I am calling the another report (Packing Slip, which I created as sub-template in next page of RTF in ms word) Iam calling in split-by-page-break, for this too I have added up a different footer. So der are actuelly 2 headers and 2 footers. 1 for Po and other for Packing Slip....
The problem I am facing is its displaying the 1st footer in all pages of both the reports... (I want the 1st footer to print @ PO report) and 2nd Footer in Packing Slip details . I am stuck up at here.. Plz help me out..
Thanks in Advance !!!
-ASIFHi..
I am not getting corresponding output..
Shall i mail my rtf and .xml file to you
Need ur mail id.. Please help me
Thanks in advance..
ASIF -
hi iam using oracle 10.2. i get a problem when i am try to start oracle .
error:
C:\Documents and Settings\Administrator>sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Mon Apr 2 11:09:18 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> conn /as sysdba;
Connected to an idle instance.
SQL> startup open;
ORA-00119: invalid specification for system parameter LOCAL_LISTENER
ORA-00132: syntax error or unresolved network name 'LISTENER_ORCL'
SQL> exit
Disconnected
C:\Documents and Settings\Administrator>sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Mon Apr 2 11:20:46 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> conn /as sysdba;
Connected to an idle instance.
SQL> startup open;
ORA-00119: invalid specification for system parameter LOCAL_LISTENER
ORA-00132: syntax error or unresolved network name 'LISTENER_ORCL'
SQL>
lisner file:
# listener.ora Network Configuration File: D:\oracle\product\10.2.0\db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_orcl =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = d:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
orcl =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.140.47.85)(PORT = 1522))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
tnsname :
# tnsnames.ora Network Configuration File: D:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools.
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.140.47.85)(PORT = 1522))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORCL)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
please help me what chang i shoud need to be change...........Example : On Windows
CREATE PFILE='c:\initORCL.ora' from spfile;
Shutdown immediate
open the file c:\initORCL.ora and remove the LOCAL_LISTENER parameter
startup PFILE='c:\initORCL.ora'
CREATE SPFILE from PFILE='c:\initORCL.ora'; -
I purchased an upgrade to Quicktime Pro and followed instructions on entering the reg #. While trying to open Quicktime Control Panel I get the following error mesage;
an exception occurred while trying to run C:\WINDOWS\system32.dll Control_RunDLL C:WINDOWS\system32\QTW32.cpl, Quicktime32
I've uninstalled and reinstalled Quicktime, same results.
Any help would be greatly appreciated.
MSI/AMD Windows XPThis may not work in later versions of iTunes that import both sound and video.
In version 2, which is what I use, I just have to go to the Advance menu and choose "Convert to AIFF" and then navigate to the movie file. iMovie should be able to import the AIFF format but you may have to first go to the iTunes preferences and set the Importing section to AIFF. Afer the import you should be able to use "Show Song File" to open the directory in which it has been placed. Put a copy in a convenient place for import into iMovie. -
Reg. Problem for fetching Opening Balance of an Account
Hello Friends,
In a report i hv to display the data for Opening balance of account according to input date..
so plz tell me the some FM if available for getting data fro Opening balance of an account.
its urgent
MarmikHi
U can use the BAPI BAPI_AR_ACC_GETOPENITEMS (for customer account) and BAPI_AP_ACC_GETOPENITEMS (for vendor account).
Anyway you should consider that Opening balance of account according to input date, are:
- The totals of all open item posted before inpu date,
- the totals of all cleared item posted before input date, but cleared after input data.
See also the BAPIs BAPI_GL_GETGLACCBALANCE, BAPI_AR_GETGLACCBALANCE and BAPI_AP_GETGLACCBALANCE.
Max
Maybe you are looking for
-
Hi, Can anybody with following code. I am converting program to unicode and getting an error 'Null space must be a data type C N D T'. Here is the code. DATA NULL_SPACE(2) TYPE x VALUE '0020'. TRANSLATE BDCDATA-FVAL USING NULL_SPACE. Reg
-
48-Hr. Film Project Nightmare
Well, it's been quite a weekend for this editor. I was a participant in the 48-Hour Film Project - and everything was going okay until about 4pm yesterday, three and 1/2 hours before we were to deliver our finished film. At that point things went ter
-
Problem publishing CS6 file in CC.
Hi, I have a file that worked perfectly fine in Flash CS6 but after upgrading to Flash CC I'm getting several of these errors: The frame scripts of the symbol * have been ignored because a compiled clip contains a definition for *. To override the *
-
Here's the deal..when I got my iPod 80GB Classic I had my iTunes on my laptop. I synched all my music, videos, and most of my pictures from the laptop to my iPod but soon after i did that the motherboard of my laptop went bad and so now I can't even
-
What is the purpose and standard usage of this field in the GL Account Master?