Example of cons. in BCS
Hello!
Recently I began to work with SEM BCS. Before I worked with BW. So I decided to do demo example. I have IDES BW/SEM. So I wanted to get a consolidation of balances of some enterprises in different regions belongs to one company. And I decide to: create hierarchy like this (enterprise - region - daughter enterprises); create a task with flexible uplaod method to load a data and create several task like bal. carryforward & period initialization and interunit eliminations for example. I created an hierarchy (master data - cons. units - company) but I do not see it in monitor of cons. And for task with flexible upload method I assigned cons frequecy monthly. But in the monitor of cons. is error thats no cons frequency assigned. How can I adjust my system to work well? Please give me some advices or any suggestions about that. I use sap presentation SEM240 and help, but it is hard to understand for the first time) Thaks very much anyway...
Hi,
pls chk this link for example;
http://help.sap.com/saphelp_sem60/helpdata/en/67/f7e73ac6e7ec28e10000000a114084/frameset.htm
Hope this helps,
Regards
CSM Reddy
Similar Messages
-
Migration from FB (Former Budgeting) to BCS - Commitments/Actuals
Dear Experts,
We are going to migrate our system from FB (Former Budgeting) to BCS, in the middle of the current year.
The migration activities deal only with Budget data migration.
My question is: How to migrate Commitments and Actuals ?
We use only Payment Budget
Please advise
YaacovDear Yaakov,
Are you thoroughly clear on the concept and functionality of Budget Control System?
Compared to FB, BCS provides changes to 2 main functionalities in PSM-FM:
1, Budgeting/planning
2, Availability Control (AVC)
-> This means, that the processes / functionalities / technical details for commitments/actuals are not changed in any way by implementing / migrating BCS.
The BCS implementation changes the data structures for budgeting tables. That is why migration of data from old budget tables to new ones is needed (even this is not mandatory, if you choose to use old reports for old budget data). You can check budget table correspondency between FB and BCS here: http://help.sap.com/saphelp_rc10/helpdata/en/c3/2c344071c82b22e10000000a1550b0/content.htm
The main point is, that commitment/actuals data is not changed, and thus no migration for those is possible (or needed). The commitments remain to be updated in table FMIOI and actuals in table FMIT. You just need to use the new BCS reports to view for example budget consumption when BCS has been activated (for example report FMRP_RW_BUDCON).
Also, you might want to consider if the migration of the old budget data is overall an absolutely mandatory requirement. Technically, you do not need to run any migration, but you can use old FB reports for previous fiscal years and just simply load only future budgeting data into the BCS. At my customer it was decided that no migration is needed, and we went successfully live with BCS withtout any issues. For past fiscal years they will be using FB reports.
Best regards,
Mikko
Edited by: Mikko Seppänen on Jan 2, 2012 9:28 AM
Edited by: Mikko Seppänen on Jan 2, 2012 9:31 AM -
Remoted DB2 connection from SAP
Hello Experts,
We have a requirement to connect the remote DB DB2 (No SAP) which is on I series from our SAP ECC EHP 5 system so I made a below entry in table DBCON -
Database connection - PRMS_TEST
DBS - DB4
Username - SAP
*Password ***********
Connection Information - AS4_HOST=S1031993;AS4_DB_LIBRARY=RMTLIB
but while doing the test connection, it gives the below error-
B Loading DB library '/usr/sap/ECD/DVEBMGS00/exe/dbdb4slib.so' ...
M *** ERROR => DlLoadLib()==DLENOACCESS - dlopen("/usr/sap/ECD/DVEBMGS00/exe/dbdb4slib.so") FAILED
"/usr/sap/ECD/DVEBMGS00/exe/dbdb4slib.so: cannot open shared object file: No such file or directory" [dlux.c 445]
M {root-id=000C298267DF1EE0BBC9171365715368}_{conn-id=00000000000000000000000000000000}_0
B *** ERROR => Couldn't load library '/usr/sap/ECD/DVEBMGS00/exe/dbdb4slib.so'
[dbcon.c 5263]
B {root-id=000C298267DF1EE0BBC9171365715368}_{conn-id=00000000000000000000000000000000}_0
B ***LOG BYG=> could not load library for database connection PRMS_TEST [dbds 886]
B ***LOG BZY=> unexpected return code 8192 calling DBDS [dbacds 1536]
My SAP environment is -
SAP - ECC EHP 5
Kernel Release 720 patch 90
OS - Red Hat Linux 5.5 - 64 bit
Database - DB2 (DB6)
Kindlly let us know if I have to put the file dbdb4slib.so in kernel directory and from where I can get this file and if my DBCON entry is correct ?
Regards
Saurabh MishraAs per note 663756, I can use the DB2 CLI driver as I am on Kernel release 720 (see below) -
If you use a DB2 CLI driver client, the following changes are required in
the procedure described above because the CLI driver does not support DB2
CLP and BIND commands:
o The CATALOG commands are omitted.
o The target host and port must be entered in the table DBCON.
For example, the CON ENV row looks as follows:
DB6_DB_NAME=HOSTDB;DB6_DB_TYPE=DB2/390;DB6_DB_HOST=<hostname>;
DB6_DB_SVCENAME=<portnum>;
o The BIND commands must be executed by a runtime client.
Alternatively, you can use the DB2Binder utility from Note 784264
to bind the CLI packages.
Is that mean that I need to only maintain the DBCON entry as all other commands are omitted for CLI driver and license file is mandatory or temp license will work ?
As per note 784264, I checked my CLASSPATH directory and it contain the JDBC driver file -
sapecdci1:db2ecd 58> pwd
/db2/db2ecd/db2_software/java
sapecdci1:db2ecd 59> ls db2*.jar
db2dbgm.jar db2jcc4.jar db2jcc.jar db2jcc_license_cu.jar db2policy.jar db2umplugin.jar
sapecdci1:db2ecd 60> db2set -all
[e] DB2DBDFT=ECD
<i> DB2_RESTORE_GRANT_ADMIN_AUTHORITIES=YES [DB2_WORKLOAD]
<i> DB2_BLOCKING_WITHHOLD_LOBLOCATOR=NO [DB2_WORKLOAD]
<i> DB2_AGENT_CACHING_FMP=OFF [DB2_WORKLOAD]
<i> DB2_TRUST_MDC_BLOCK_FULL_HINT=YES [DB2_WORKLOAD]
<i> DB2_CREATE_INDEX_COLLECT_STATS=YES [DB2_WORKLOAD]
<i> DB2_ATS_ENABLE=YES [DB2_WORKLOAD]
<i> DB2_RESTRICT_DDF=YES [DB2_WORKLOAD]
<i> DB2_DUMP_SECTION_ENV=YES [DB2_WORKLOAD]
<i> DB2_OPT_MAX_TEMP_SIZE=10240 [DB2_WORKLOAD]
<i> DB2_WORKLOAD=SAP
<i> DB2_TRUNCATE_REUSESTORAGE=IMPORT [DB2_WORKLOAD]
<i> DB2_MDC_ROLLOUT=DEFER [DB2_WORKLOAD]
<i> DB2_ATM_CMD_LINE_ARGS=-include-manual-tables [DB2_WORKLOAD]
<i> DB2_SKIPINSERTED=YES [DB2_WORKLOAD]
<i> DB2_VIEW_REOPT_VALUES=YES [DB2_WORKLOAD]
<i> DB2_OBJECT_TABLE_ENTRIES=65532 [DB2_WORKLOAD]
<i> DB2_OPTPROFILE=YES [DB2_WORKLOAD]
<i> DB2_IMPLICIT_UNICODE=YES [DB2_WORKLOAD]
<i> DB2_RUNTIME_DEBUG_FLAGS=TOLERANT_FLOAT [DB2_WORKLOAD]
<i> DB2STMM=APPLY_HEURISTICS:YES [DB2_WORKLOAD]
<i> DB2_INLIST_TO_NLJN=YES [DB2_WORKLOAD]
<i> DB2_MINIMIZE_LISTPREFETCH=YES [DB2_WORKLOAD]
<i> DB2_REDUCED_OPTIMIZATION=4,INDEX,JOIN,NO_TQ_FACT,NO_HSJN_BUILD_FACT,STARJN_CARD_SKEW,NO_SORT_MGJOIN,CART OFF,CAP OFF [DB2_WORKLOAD]
<i> DB2NOTIFYVERBOSE=YES [DB2_WORKLOAD]
<i> DB2TERRITORY=1
<i> DB2_INTERESTING_KEYS=YES [DB2_WORKLOAD]
<i> DB2_EVALUNCOMMITTED=YES [DB2_WORKLOAD]
<i> DB2_EXTENDED_OPTIMIZATION=NLJOIN_KEYCARD,IXOR [DB2_WORKLOAD]
<i> DB2_ANTIJOIN=EXTEND [DB2_WORKLOAD]
<i> DB2COMPOPT=327685,131776 [DB2_WORKLOAD]
<i> DB2ATLD_PORTS=60000:65000
<i> DB2ENVLIST=INSTHOME SAPSYSTEMNAME dbs_db6_schema DIR_LIBRARY LD_LIBRARY_PATH
<i> DB2COMM=TCPIP [DB2_WORKLOAD]
[g] DB2FCMCOMM=TCPIP4
[g] DB2SYSTEM=sapecdci1
[g] DB2INSTDEF=db2ecd
sapecdci1:db2ecd 61> java com.ibm.db2.jcc.DB3Binder
Exception in thread "main" java.lang.NoClassDefFoundError: com.ibm.db2.jcc.DB3Binder
at gnu.java.lang.MainThread.run(libgcj.so.7rh)
Caused by: java.lang.ClassNotFoundException: com.ibm.db2.jcc.DB3Binder not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/db2/db2ecd/sqllib/java/db2jcc_license_cu.jar,file:/db2/db2ecd/sqllib/java/db2jcc.jar,file:/db2/db2ecd/sqllib/function/,file:./,file:/db2/db2ecd/sqllib/java/db2java.zip,file:./,file:/db2/db2ecd/sqllib/java/db2java.zip,file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(libgcj.so.7rh)
at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
at gnu.java.lang.MainThread.run(libgcj.so.7rh)
sapecdci1:db2ecd 62> db2 get dbm cfg | grep -i svcename
TCP/IP Service name (SVCENAME) = sapdb2ECD
SSL service name (SSL_SVCENAME) = -
Issues with Connection.createStatememnt
Hi All,
Is that true for each Connection.createStatement will create connection object.
For Example:
Connection con = ds.getConnection();
for(;count>100;){
Statement stat = con.createStatement()
after executing above code, i went and saw the "Current Activity/ProcessInfo" in SQL Enterprice manager 100 process id was created with my database.
Please clarify me on this..
Thanks
M.Prem.Hi, here is my complete test program, which is creating 100 connection in MSSQL server.
import java.sql.*;
import com.microsoft.jdbc.sqlserver.*;
import com.microsoft.jdbc.base.*;
import com.microsoft.*;
public class DBTest
public void test()
try
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
Connection conn = DriverManager.getConnection("jdbc:microsoft:sqlserver://10.4.10.81:1433;DatabaseName=TESTDB","sa","sa");
Statement st = null;
for(int i =0;i<100;i++)
st = conn.createStatement();
catch (Exception ex)
ex.printStackTrace();
public static void main(String[]a) throws Exception
DBTest dbexam = new DBTest();
dbexam.test();
Can you , please tell me why the above code is creating 100 connection is MSSQL server.. it suppost create 1 connection with 100 statement object right? -
Key figure Period Value TC has a difference of 123,445- IDR in roundingstep
Hi,
Pls suggest some tips, to resolve this, as I am struck in Currency Translation;
Diagnosis
While checking the rounding conditions for key figure Period Value TC a difference of 123,445- IDR was found in step Balance Sheet.
System Response
The data will not be rounded.
Procedure
Examine the data to be rounded with regards to the key figure to be checked, Period Value TC. Check whether the rounding condition has been met for this key figure.
Make sure that the check looks at the total balance of posting levels 00, 01, and 10 (as opposed to the rounding algorithm, which rounds each posting level separately).
If the same message (with different differentials) appears elsewhere, please note that the check is performed for each subassignment value of those subassignments that have a selected default indicator in the differential account assignment. In this case, check the customizing settings for method step Balance Sheet.
Regards
CSM ReddyHi CSM Reddy,
The content of this forum is rather rich and contains a lot of questions and solutions given already.
So, I'm kindly remind you about searching functionality.
You could find, for example, this link:
SEM-BCS: Currency translation
A little remark. Disbalance may occur because of different reasons. So, first of all try to run the RFD validation. If the validation does end with errors, especially an error on the check that compares RE in B/S and NI in P&L, run the reclass (2nd one) mentioned in the link.
If such a check is green, then go for another reclass (the 1st in the link) which will round the balance. Usually, I run it in a test mode first, in order to see how much differences the system discovered. If they are not material, I round them. If they are, then it'd better to investigate the reason.
Hope this helps.
Edited by: Eugene Khusainov on Sep 23, 2008 12:12 PM -
Problems while creating a Java stored proc with dynamic SQL
Hi,
I am trying to write a stored procedure which uses dynamic SQL. The code runs fine outside the database (on DOS PROMPT),but gives me an exception when I try to execute it as a procedure. Could somebody help me out?
The exception given is:
ERROR at line 1:
ORA-29532: Java call terminated by uncaught Java exception:
java.security.AccessControlException: the Permission (java.net.SocketPermission
elcamino.mcasolutions.com resolve) has not been granted by
dbms_java.grant_permission to SchemaProtectionDomain(SPO|PolicyTableProxy(SPO))
Does it have anything to access permissions to that user?
Thanks in advance!
JoeHi:
This store procedure is a Java stored procedure (JSP)?
If true, change your Java code to connect to database because you are connected.
For example:
Connection con = new OracleDriver().defaultConnection();
instead of
Connection con = DriverManager.getConnection(..);
Bye.
J. -
Which SAP Product version to assign to a Logical Component in SMSY (SOLMAN)
Dear SAP Colleagues,
In our SAP environment, we do have 2 versions of ERP systems :
1. CON - SIF - CDP systems are 'SAP ERP Central Component 5.0' product version.
2. CDD - CDT - CDP systems are 'SAP ECC 6.0' product version.
Question :
When I want to assign these systems to a Z_LOGICAL_COMPONENTS, which product version do I have to choose ?
Example for CON - SIF - CDP systems :
1. They are 'SAP ERP Central Component 5.0' product version.
2. In SMSY in our SOLMAN system, logical component are created using
'SAP ECC 5.0' product version.
Example for CDD - CDT - CDP systems :
1. They are 'SAP ECC 6.0' product version.
2. In SMSY in our SOLMAN system, logical component are created using
'SAP ECC 6.0' product version.
Question :
What about 'SAP ERP 2004' and 'SAP ERP 6.0' product version ?
In which case must I use this product version to assign CON-SIF-CPS
or CDD-CDT-CDP to new Logical components ?
Are they OSS Note or any matrix which give me the right product version to choose ?
I have heard that 'SAP ECC x.x' product version should not used any longer ?
Thanks
Best regards
P.CHi,
Read the following document, the mapping for systems and component versions is described in here:
https://websmp202.sap-ag.de/~sapdownload/011000358700000074392009E/SP18_SolMan_Setup_Guide_V2.pdf
For ECC 6.0 you should select ERP 6.0
regards,
Jaap -
hi,
i have a problem in login with sys, the situation as follows:
1- when i try to connect using : sqlplus "/as sysdba" or "sys/password as sysdba" it connect me to the DB.
2- when i try to connect : sqlplus "sys/password@MYDB as sysdba" it gives me "ORA-01017: invalid username/password; logon denied".
3- when i try to connect with another user i.e : sqlplus "system/password@MYDB" it connect me to the DB.
DB version : 9.2.0.8
OS version : Solaris 10
please advice...1- when i try to connect using : sqlplus "/as sysdba"
or "sys/password as sysdba" it connect me to
the DB.This works anyway, because you're authenticated by OS. Example :
SQL> conn sys/aaaa as sysdba
Connected.
SQL> conn sys/bbbb as sysdba
Connected.
SQL>
2- when i try to connect : sqlplus "sys/password@MYDB
as sysdba" it gives me "ORA-01017: invalid
username/password; logon denied".Here you need the real password, so make sure you're using the correct one. -
How Can I add a object to the scene Graph ??
Hi all!
I have set up a 3d scene Graph. Now I want to add a object (for example,a cone) to the scene Graph. How can I do ???
thanks in advance!Hi,
if you want to add your cone to a branchgroup "mainbranchgroup", you have to set mainbranchgroup.setCapability(BranchGroup.ALLOW_CHILDREN_WRITE) while creating this branchgroup (and before compiling the scene).
Then, when you want to add the cone, you just have to add a child to the mainbranchgroup.
I hope that helps. -
BPM: Confirming alerts doesn't refresh alert status
Hi Colleagues,
Have anyone dealt with refreshing problems in Solman's BPM?
If I have a red alert and process it, I proceed to confirm the alert.
In this node, status is changed to green (some cases into grey).
If I get back to the first screen in the BPM, process is still in red leading to confusion to our local monitoring team. It doesn´t matter that no other alerts are current unconfirmed.
You can refresh as many times you want, system remains in red.
I have a message in support but response process is really slow.
They just recomended to apply latest version of note 0001255970 but no effects were observed.
We are in ST 400 SP 17.
Thanks,
Renato PetrulisJust as feedback from SAP Support, it´s not an error:
(...) Let me explain the difference between Current Status and Open Alerts a
little more:
Every MTE (MTE: Monitoring Tree Element. It is the actual measurement that you are interested in. For example, BDocs con ErrorBDocs con Error defined in component BDocs con Error is an MTE) has configurable thresholds. The thresholds define the values which, when exceeded, create an alert instance. Both yellow and red thresholds can be defined. The alert instance records the time at which the threshold was exceeded,and also have a corresponding status i.e. if the red threshold is
exceeded, a red alert instance is created. When you hit the 'Confirm' button, you are actually clearing the alert instances.
Whereas, in the Current Status view, you actually see the current value of the MTE, which can be red or yellow or green irrespective of what hadhappened in the past.
Therefore, the expected behaviour is that when all the alerts are confirmed, the MTE shows green in the Open Alerts view. But the Current Status view continues to show the actual current status, which may be red or yellow or green. Therefore the DSWP transaction is actually working as expected.
Edited by: Renato Petrulis on Dec 11, 2009 3:31 PM -
HOW TO TRIGGER AN WORKFLOW FROM A PROGRAM ?
HELLO THERE ,
CAN ANYBODY PLZ TELL ME HOW TO TRIGGER AN WORKFLOW FROM AN PROGRAM AND TO PAS THE VALUE TO THE CONTAINER ?Hello Neon,
If you want to trigger the workflow directly, use the FM, SWU_START_WORKFLOW
CALL FUNCTION 'SWU_START_WORKFLOW'
EXPORTING
task =
* LANGUAGE = SY-LANGU
user =
* SENDER_ID =
* IMPORTING
* RETURN_CODE =
* WORKITEM_ID =
tables
* CONTAINER =
* MESSAGE_LINES =
attachment_list =
A workflow can also be triggered by and event which is in turn triggered by a program.
By the FM, SWE_CREATE_EVENT
Example:
w_key = 'Connie'.
w_creator-otype = 'US'.
w_creator-objid = 'SAPDEV02'.
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
objtype = 'YH_BUDDIES'
objkey = w_key
event = 'event'
creator = w_creator
* TAKE_WORKITEM_REQUESTER = ' '
* START_WITH_DELAY = ' '
* START_RECFB_SYNCHRON = ' '
* NO_COMMIT_FOR_QUEUE = ' '
* DEBUG_FLAG = ' '
* NO_LOGGING = ' '
* IDENT =
* IMPORTING
* EVENT_ID =
* TABLES
* EVENT_CONTAINER =
EXCEPTIONS
objtype_not_found = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
WRITE: / 'EVENT TRIGGERED'.
ENDIF.
COMMIT WORK.
Hope it helps you.
Regards
Indu. -
Independently configure date format for XML/JSON serialization
How do I configure the date format independently for each of my date fields?
For example, let's say I have a CustomerOrder class with more than 1 java.util.Date fields in it.
I need to be able to render like this:
<customerOrder>
<orderDate>2013-01-04T20:50:42.769Z</orderDate>
<user>Bob</lastUpdateUser>
<state>CO</state>
<estShipDate>2013-01-04</estShipDate>
</customerOrder>
So one of the dates may not care about the hh:mm:ss.
i.e. I cannot format every date the same way.
Any ideas?
This is my technology stack:
- Tomcat 7
- Jersey 1.16
- Enunciate 1.26.2
- Spring 3.1.2
- Hibernate 4.1.7
- JPA 2.0.3Otis,
A "java.sql.Date" contains only a date, whereas a "java.sql.Timestamp" contains both date and time. So retrieve the data (from the database) as a "Timestamp" and not as a "Date".
Perhaps if you'd care to post the relevant part of your code and show what you are getting and what you want to get, I may be able to help you further.
Here's a small (uncompiled and untested) example:
Connection conn = // However you get it.
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery("select sysdate from dual");
if (rs.next()) {
Timestamp ts = rs.getTimestamp(1);
}Good Luck,
Avi. -
Problem related to debit note and GRN
Hi People
I am abhishek working as a SAP consultant in a Garment manufacturing firm
There was a PO made for some threading cones of different size
for example
one cone with 100 meter length and second cone with 200 metre length
in PO ordered qty was in metres
100 thread cones of 100 metres = 10000 metres
10 thread cones of 200 metre length = 2000 mtrs
total metres is 12000 mtrs
price per metre is same for both the cones
now the guy who made the MIGO considered it as all the cones made are of same type and made the GRN as
110 cones recived ie 110 * 100 = 11000
and we sent the vendor a debit note of 1000 mtrs
all the payment were carried out and the check has been sent to vendor as well
now the vendor came back and sai he sent all the order in PO correctly
what should be done now?
i dont want to cancle the debit note and invoices and make a grn of remaining 1000 mtrs
can any one suggest me wht can be done ?you have to pay to the vendor. its the mistake from the data entry point of view. either you have to cancel and recreate the entry or you have to pay. that it.
-
Running JSP on TOMCAT 7.0.50 cannot Oracle 12c on Windows 8.1 returns ORA-12505
I have installed and configured and using JSP, Tomcat 7.0.50 , Oracle 12c running Windows 8.1
Oracle driver - ojdbc7.jar
I am running a basic JSP test which is failing with
Basic Test SQLException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
This is weird because I can connect using sqlplus
SQL> conn dreamhome/dreamhome@pdborcl
Connected.
I can also connect using system to ORCL (as system). Howver PDBORCL is still failing through TOMCAT
JSP Connection call
<%@ page import="java.sql.*" %>
Basic Test
<%
Connection conn = null;
try
Class.forName("oracle.jdbc.driver.OracleDriver");
conn = DriverManager.getConnection( "jdbc:oracle:thin:@localhost:1521:pdborcl", "dreamhome", "dreamhome");
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery("SELECT * FROM dreamhome_users");
//Print start of table and column headers out.println("");
out.println("");
out.println(" "); //Loop through results of query.
while(rs.next())
out.println("");
out.println("LOGIN_ID USERNAME PASSWORD" + rs.getString("LOGIN_ID") + " " + rs.getString("USERNAME") + " " + rs.getString("PASSWORD") + "");
TNSPING
..\product\12.1.0\dbhome_1\NETWORK\ADMIN>tnsping pdborcl
TNS Ping Utility for 64-bit Windows: Version 12.1.0.1.0 - Production on 16-JAN-2
014 05:41:15
Copyright (c) 1997, 2013, Oracle. All rights reserved.
Used parameter files:
..\product\12.1.0\dbhome_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = pdborcl)))
OK (10 msec)
..\product\12.1.0\dbhome_1\NETWORK\ADMIN>
TNSNAMES.ORA (extract)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
PDBORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = pdborcl)
Database queries
SQL> select PDB from v$services;
PDB
PDBORCL
CDB$ROOT
CDB$ROOT
CDB$ROOT
CDB$ROOT
SQLPLUS example
SQL> conn dreamhome/dreamhome@pdborcl
Connected.
A working example
<%
Connection conn = null;
try
Class.forName("oracle.jdbc.driver.OracleDriver");
conn = DriverManager.getConnection( "jdbc:oracle:thin:@localhost:1521:orcl", "system", "password");
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery("SELECT * FROM dreamhome_users");
//Print start of table and column headers out.println("");
out.println("");
out.println(" "); //Loop through results of query.
while(rs.next())
Basic Test SQLException: ORA-00942: table or view does not exist
Failing example
<%
Connection conn = null;
try
Class.forName("oracle.jdbc.driver.OracleDriver");
conn = DriverManager.getConnection( "jdbc:oracle:thin:@localhost:1521:pdborcl", "system", "password");
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery("SELECT * FROM dreamhome_users");
//Print start of table and column headers out.println("");
out.println("");
out.println(" "); //Loop through results of query.
while(rs.next())
out.println("");
out.println("LOGIN_ID USERNAME PASSWORD" + rs.getString("LOGIN_ID") + " " + rs.getString("USERNAME") + " " + rs.getString("PASSWORD") + "");
Basic Test SQLException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
TOMCAT config files
server.xml extract
<Resource name="jdbc/Oracle12C"
auth="Container"
type="oracle.jdbc.pool.OracleDataSource"
driverClassName="oracle.jdbc.driver.OracleDriver"
factory="oracle.jdbc.pool.OracleDataSourceFactory"
url="jdbc:oracle:thin:@localhost:1521:pdborcl"
user="dreamhome"
password="dreamhome"
maxActive="20"
maxIdle="10"
maxWait="-1" />
Any suggestions?I have installed and configured and using JSP, Tomcat 7.0.50 , Oracle 12c running Windows 8.1
Oracle driver - ojdbc7.jar
I am running a basic JSP test which is failing with
Basic Test SQLException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
This is weird because I can connect using sqlplus
SQL> conn dreamhome/dreamhome@pdborcl
Connected.
I can also connect using system to ORCL (as system). Howver PDBORCL is still failing through TOMCAT
JSP Connection call
<%@ page import="java.sql.*" %>
Basic Test
<%
Connection conn = null;
try
Class.forName("oracle.jdbc.driver.OracleDriver");
conn = DriverManager.getConnection( "jdbc:oracle:thin:@localhost:1521:pdborcl", "dreamhome", "dreamhome");
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery("SELECT * FROM dreamhome_users");
//Print start of table and column headers out.println("");
out.println("");
out.println(" "); //Loop through results of query.
while(rs.next())
out.println("");
out.println("LOGIN_ID USERNAME PASSWORD" + rs.getString("LOGIN_ID") + " " + rs.getString("USERNAME") + " " + rs.getString("PASSWORD") + "");
TNSPING
..\product\12.1.0\dbhome_1\NETWORK\ADMIN>tnsping pdborcl
TNS Ping Utility for 64-bit Windows: Version 12.1.0.1.0 - Production on 16-JAN-2
014 05:41:15
Copyright (c) 1997, 2013, Oracle. All rights reserved.
Used parameter files:
..\product\12.1.0\dbhome_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = pdborcl)))
OK (10 msec)
..\product\12.1.0\dbhome_1\NETWORK\ADMIN>
TNSNAMES.ORA (extract)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
PDBORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = pdborcl)
Database queries
SQL> select PDB from v$services;
PDB
PDBORCL
CDB$ROOT
CDB$ROOT
CDB$ROOT
CDB$ROOT
SQLPLUS example
SQL> conn dreamhome/dreamhome@pdborcl
Connected.
A working example
<%
Connection conn = null;
try
Class.forName("oracle.jdbc.driver.OracleDriver");
conn = DriverManager.getConnection( "jdbc:oracle:thin:@localhost:1521:orcl", "system", "password");
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery("SELECT * FROM dreamhome_users");
//Print start of table and column headers out.println("");
out.println("");
out.println(" "); //Loop through results of query.
while(rs.next())
Basic Test SQLException: ORA-00942: table or view does not exist
Failing example
<%
Connection conn = null;
try
Class.forName("oracle.jdbc.driver.OracleDriver");
conn = DriverManager.getConnection( "jdbc:oracle:thin:@localhost:1521:pdborcl", "system", "password");
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery("SELECT * FROM dreamhome_users");
//Print start of table and column headers out.println("");
out.println("");
out.println(" "); //Loop through results of query.
while(rs.next())
out.println("");
out.println("LOGIN_ID USERNAME PASSWORD" + rs.getString("LOGIN_ID") + " " + rs.getString("USERNAME") + " " + rs.getString("PASSWORD") + "");
Basic Test SQLException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
TOMCAT config files
server.xml extract
<Resource name="jdbc/Oracle12C"
auth="Container"
type="oracle.jdbc.pool.OracleDataSource"
driverClassName="oracle.jdbc.driver.OracleDriver"
factory="oracle.jdbc.pool.OracleDataSourceFactory"
url="jdbc:oracle:thin:@localhost:1521:pdborcl"
user="dreamhome"
password="dreamhome"
maxActive="20"
maxIdle="10"
maxWait="-1" />
Any suggestions? -
Inconsistent Stream responses b/w servlet & applet
Hi all,
I am facing problem with my servle/applet communication .I am using serialized object transport b/w the two. I am able to send my object using a URL connection class successfully to the server .
However having problems while reading the response on the applet .
It's been so incosistent that I sometimes think of switching over to some activex control instead of an applet .
I have been struggling with this one for quite sometime . Somebody help to fix this out!
First to the problem faced by me
Some times I get StreamCorruptedException saying Input stream does not contain serialized object .
Some times I get EOFException saying Invalid Header-1.
Why so much inconsistency when I am passing the same serialzed object CStreamData? Anyone's valueable input is highly appreciated.
My part of code that reads the object sent from the servlet.
public CStreamData ReadResObj(CServerRequest oRequest)
CStreamData objResponse = null;
isServerRunning = true;
try {
URL url = new URL( "http://localhost:8080"+
"/apps/servlet/MWServer");
URLConnection con = url.openConnection();
con.setUseCaches(false);
con.setRequestProperty("CONTENT_TYPE","application/octet-stream");
con.setDoInput(true);
con.setDoOutput(true);
ObjectOutputStream out = new ObjectOutputStream(con.getOutputStream());
out.writeObject(oRequest);
out.flush();
out.close();
ObjectInputStream ois = new ObjectInputStream(con.getInputStream());
//The exception is thrown here while reading...
objResponse = (CStreamData)ois.readObject();
ois.close();
}catch (Exception e)
isServerRunning = false;
return (CStreamData)objResponse;
return (CStreamData)objResponse;
}//End of readResObj
Best rgds,
prithviIt would be interesting to see what's the response of your servlet.
Mybe the response of your servlet is an error html page
which of course can't be converted into Object of Type CStreamData.
You should think about doing some error handling before you try read from the ObjectInputStream an before you think about using ActiveX components.
for example
URLConnection con = url.openConnection();
HttpURLConnection httpConnection;
try
URL url = new URL( "http://localhost:8080"+"/apps/servlet/MWServer");
URLConnection con = url.openConnection();
httpConnection = (HttpURLConnection)con;
out.close();
if( httpConnection.getResposeCode() == HttpURLConnection.HTTP_OK )
ObjectInputStream ois = new ObjectInputStream(con.getInputStream());
objResponse = (CStreamData)ois.readObject();
ois.close();
}If you still have problems dump the content of your servlet response
to the console and tell what you see or post parts of the response.
Maybe you are looking for
-
Stuck with the Apple and nothing else
It seems many are having problems with the recent software update. Me too - can anyone help? Following the update I am now stuck with the Apple sign. When I do a restore (Menu/Play) the apple sign dissaperars, then comes back and I am back where I st
-
Mountain Lion freezes - Solution?
I found that the freezes relate to the following messages... 6/8/13 1:59:10.000 PM kernel[0]: NVDA(OpenGL): Channel timeout! There are earlier threads related to "graphics switching" as the culprit. "Display Sleep" under "Energy Saver" in "Preference
-
Regarding Business System and Business Service
Hello, What is the difference between the Business system and Business service. When do we go for what? Which system we will take as business system or business service means either sender system or reciever system. Give me with simple example... ple
-
How to write output to file in flash
hi all experts. I want to monitor a specific link. Lets say when it goes down, i want to write the following to a file in flash called link_mon.txt link down <show clock output> When it gets back up link up <show clock output> I know how to write the
-
E4200 reset to factory default problem
due to password loss, I get to reset the E4200 to factory default in order for router re-config. Aftr pressing the reset buttom for 10sec, the router reset. After then, I could not access the router via browser with 192.168.1.1 at URL entry. My PC