SecStore.properties file - need to regenerate-Sys Copy of SAP NetW BI 7.0

Hello Experts,
I'm having an issue with a follow up activity of a recent System Copy-> SAP NW 2004s ABAP & JAVA Stack ->System copy of our Production BI system to a Sandbox system. (HP-UX servers 11.23 / Oracle 10g) Our SecStore.properties file contains the Production Source system's credentials and I am unable to update the properties using the configtool.sh or offlinecfgeditor.sh scripts. I am receiving the following error:
system.log from offlinecfgeditor.sh
... #2#com.sap.sql.log.OpenSQLException#Error while accessing secure store: The encryption key (usually in the key file) is not the key that is required to decrypt the data in the secure store file or the system name (SID) is wrong..#
The SID in the below file contains our production sid (BWP) and needs to be (BWX-our target system)
/usr/sap/BWX/SYS/global/security/data/SecStore.properties
Is there anyway to reconfigure this property file other than the 2 scipts listed above?
I have tried to set the file and directory permissions to 777; I'm still getting the same error message. Our properties file still has the source SID within the file (BWP). We want to use the offlinecfgeditor.sh script to change this but we get the error.
Thanks,
Laurie

Hello Manoj,
Thanks for your reply.  I have tried running the ./configtool.sh.  I am receiving the same error:
Error occurred while loading the secure store.  Msg: The encryption key (usually in the key file) is not the key that is required to decrypt the data in the secure store file or the system name (SID) is wrong.
I was told that a system copy (following SAP's recommendation for a system copy) was followed for this target system I'm having an issue with.  A system copy of our production BW system was performed.  The secure store files still contain the Source (production BWP sid within the file).
Other suggestions?
Thanks again!
Laurie
Full System Log from configtool.sh:
bwxadm> cat system.log
<!LOGHEADER[START]/>
<!HELP[Manual modification of the header may cause parsing problem!]/>
<!LOGGINGVERSION[1.5.3.7185 - 630]/>
<!NAME[./system.log]/>
<!PATTERN[system.log]/>
<!FORMATTER[com.sap.tc.logging.ListFormatter]/>
<!ENCODING[UTF8]/>
<!LOGHEADER[END]/>
#1.# #1247145554041#/System/Configuration/Logging##com.sap.tc.logging.APILogger.LogController[addLog()]#######Thread[main,5,main]##0#0#Info##Java#TC_LOGGING_CONFIGURATION_NEW_ITEMS[C0000A305666000000000002018FB1F70003D67C779ECE88]##The () has been added to the !#3#Log#./system.log#/System#
#1.# #1247145554114#/System/Server##com.sap.engine.core.configuration#######Thread[main,5,main]##0#0#Info#1#com.sap.engine.core.configuration#Plain###ConfigurationManager: found jar for secure store /sapmnt/BWX/global/security/lib/tools/iaik_smime.jar#
#1.# #1247145554115#/System/Server##com.sap.engine.core.configuration#######Thread[main,5,main]##0#0#Info#1#com.sap.engine.core.configuration#Plain###ConfigurationManager: found jar for secure store /sapmnt/BWX/global/security/lib/tools/iaik_ssl.jar#
#1.# #1247145554115#/System/Server##com.sap.engine.core.configuration#######Thread[main,5,main]##0#0#Info#1#com.sap.engine.core.configuration#Plain###ConfigurationManager: found jar for secure store /sapmnt/BWX/global/security/lib/tools/w3c_http.jar#
#1.# #1247145554115#/System/Server##com.sap.engine.core.configuration#######Thread[main,5,main]##0#0#Info#1#com.sap.engine.core.configuration#Plain###ConfigurationManager: found jar for secure store /sapmnt/BWX/global/security/lib/tools/iaik_jce.jar#
#1.# #1247145554116#/System/Server##com.sap.engine.core.configuration#######Thread[main,5,main]##0#0#Info#1#com.sap.engine.core.configuration#Plain###ConfigurationManager: found jar for secure store /sapmnt/BWX/global/security/lib/tools/iaik_jsse.jar#
#1.# #1247145554546#/System/Configuration/Logging##com.sap.tc.logging.APILogger.LogController[setResourceBundleName(String resourceBundleName)]#######Thread[main,5,main]##0#0#Info##Java#TC_LOGGING_CONFIGURATION_IS_CHANGED[C0000A305666000000000000018FB1F70003D67C779CD2B8]##The for the has been changed from to )!#5#resource bundle name#LogController#com.sap.security.core.server.secstorefs.SecStoreFS#<null>#com.sap.security.core.server.secstorefs.SecStoreFSResources#
#1.# #1247145554546#/System/Configuration/Logging##com.sap.tc.logging.APILogger.LogController[setResourceBundleName(String resourceBundleName)]#######Thread[main,5,main]##0#0#Info##Java#TC_LOGGING_CONFIGURATION_IS_CHANGED[C0000A305666000000000000018FB1F70003D67C779CD2B8]##The for the has been changed from to )!#5#resource bundle name#LogController#/System/Security/SecStoreFS#<null>#com.sap.security.core.server.secstorefs.SecStoreFSResources#
#1.# #1247145559803#/System/Configuration/Logging##com.sap.tc.logging.APILogger.LogController[setResourceBundleName(String resourceBundleName)]#######Thread[main,5,main]##0#0#Info##Java#TC_LOGGING_CONFIGURATION_IS_CHANGED[C0000A305666000000000000018FB1F70003D67C779CD2B8]##The for the has been changed from to )!#5#resource bundle name#LogController#/System/Database/sql/connect#<null>#com.sap.sql.log.OpenSQLResourceBundle#
#1.# #1247145559803#/System/Database/sql/connect##com.sap.sql.connect.OpenSQLDataSourceImpl#######Thread[main,5,main]##0#0#Error#1#com.sap.sql.connect.OpenSQLDataSourceImpl#Java#com.sap.sql_0019#com.sap.sql.log.OpenSQLResourceBundle#Exception of type caught: .#2#com.sap.sql.log.OpenSQLException#Error while accessing secure store: The encryption key (usually in the key file) is not the key that is required to decrypt the data in the secure store file or the system name (SID) is wrong..#

Similar Messages

  • Regenerate SecStore.properties file

    Hi anyone out there.
    We messed up the /sapmnt/SID/global directory
    does anyone knows how to regenerate this directory - unfortunately we do not have a backup
    Specifically anyone know how to regenerate the SecStore.properties file with all those hash values of the password
    any help will be greatly appreciated and rewarded
    Thank you.
    Message was edited by: Wai-Hon Lam

    hi,
    I don't even see the file SecStore.Properties in /global/data folder...
    when i try to start configtool, getting an error saying "SecStore.Properties does not exist although it should..
    ( This is the first time i am starting the configtoo.sh in solaris..i am a new to this environment.)
    Please help me..Help would be greatly appreciated and rewarded.
    Thanks!
    Addy

  • ConfigTool Login problem..SecStore.Properties file is missing..!

    hi all,
    I am unable to open Configtool since the SecStore.Properties file is missing which is supposed to be available in /sapmnt/<SID>/global/security/data/SecStore.properties..
    Below is the error being thrown while starting configtool.sh...
    Error while loading the securestore..
    Msg: File"/sapmnt/<SID>/global/security/data/SecStore.properties" does not exist although it should
    The OS is Solaris 10..How can i resolve this issue..Can i just copy it from some of colleague or just create it with the necessary parameter ( if yes,what is the procedure to create such file )
    Your valuable answers will be appreciated and rewared.
    Please help..
    Thanks!
    Addy

    Hi,
    I am a new user having super admin role.Ours is EP 7.0  Standalone JAVA with LDAP.
    Actually, the file SecStore.properties is not been created or not been used for my user.
    when i try to start configtool with my own UID/PW  i get this error.
    My question here is..Am i supposed to use Administrator (since, its standslone JAVA ) or the <sid>adm as per everyone's suggestion.
    I guess i can use both Administrator and <sid>adm for configtool since both needs master password to login. but, why not my UID/PW which has Super admin role..??!!
    Appreciate your time discussing on this.
    Addy

  • Properties File - need some help

    hello, Im trying to figure out how to work with the Properties class. I think it can handle what i'm trying to accomplish. Maybe someone can point me in the direction of some rookie material to read. But anyway heres my dilemma. I need to create some form of structured message that can be saved (properties file), but i don't know how to structure it in the way specified.
    For example, say the message has 3 fields: ID(unsigned int), TIME(unsigned long int), and SIZE(unsigned int)
    I want ID to take up the first 2-bytes of the message, TIME to take the next 4, and SIZE have the remaing 4. Whats the best way to create this? I'm new to this stuff, and looking for some direction...i don't know where to start

    Take a look at the API docs for java.io.DataOutputStream and java.io.DataInputStream. If you are serializing these to the filesystem, you will want to wrap a java.io.FileOutputStream and java.io.FileInputStream with the appropriate data stream type.
    - Saish

  • Localize app. using Bundle.properties files, need help

    Hi! I used tutorial to internationalize my app.:
    http://www.oracle.com/technology/products/jdev/101/howtos/jsfinter/index.html
    I use Jdeveloper 11g. Have 2 files: LocalizeKokaugi.properties and LocalizeKokaugi_en.properties. My app is internationalized, but when I need to change language then I need use IE or FireFox settings to set language. I have two questions:
    1. What I need to do to change language using my created buttons? Can You give step by step to this?
    2. Can I set VO -> Attributes -> Control Hints -> Labet Text to #{sampleBundle.myTitle}. I tried this, but then the label value don't comes from my bundle. Where is problem and what to do?
    Waiting response from You!
    Best regards

    Deniz Gulmez wrote:
    Hello,
    Is below method enough to change the locale for Application Module also? I am trying to change the locale using the below code. Messages from UI project changes as expected but Entity labels and error messages from Application Module are still in old locale.
    private void switchToLocale(Locale locale)
    FacesContext context = FacesContext.getCurrentInstance();
    UIViewRoot root = context.getViewRoot();
    root.setLocale(locale);
    It should... However I must admit that I rarely push the Locale on the model layer, it does not belongs there, even if ADF encourage that pattern, I highly dislike it and do everything in my power to not have it used in my project. Presentation language is, well, a presentation concern, so should be handled in the presentation layer, not the business one. When the model must send an information, it should be using a code and parameters that then get translated by the view.
    Regards,
    ~ Simon

  • SecStore.Properties missing

    Hi All,
    During the JAVA part of ECC 6.0 installation, I get an error saying the SecStore.Properties file does not have correct information.
    I see the file /usr/sap/SID/SYS/global/secure/data directory. But the file is empty.
    Any ideas?
    Thanks
    Shabna

    Hi All,
        I found the following solution:
    Error when installing NW2004S ABAP + Java
    I have not tried it, I just needed to install the ABAP stack, so started a fresh installation, Hope this helps someone else
    Thanks
    Shabna

  • Which properties file should be modified for DocumentBuilderFactory

    I am creating a Document object using the following lines of code. Unfortunately, the DocumentBuiderFactory, by default looks for a namespace org.xml.... Which means that I get a parsing error when I am not connected to the net. Can someone point out which properties file needs to be modified to prevent this error from occuring.
    // Build the request document
    DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = builderFactory.newDocumentBuilder();
    Document response = builder.parse(in);
    Thanks in advance
    Jimmy

    Did you ever figure this problem out? If so, could you provide me with some advice about it?

  • Environment Variable Properties file

    Using log4j and creating a log4j properties file. "log4j.properties".. How do I specify the home directory in the properties file ? On command line I might use $HOME but I don't think that works in a properties file. I'd like any log file generated to be placed in a directory under the home directory. So the log4j.properties file needs to contain the line..
    log4j.appender.A2.File=$HOME/foo/log.txt
    But I'm seeing FNFE set file failed...

    Or, do what I should have done in the first place:
    read the API documentation for PropertyConfigurator
    where it says
    "All option values admit variable substitution. The
    syntax of variable substitution is similar to that of
    Unix shells. The string between an opening "${" and
    closing "}" is interpreted as a key. The value of the
    substituted variable can be defined as a system
    property or in the configuration file itself. The
    value of the key is first searched in the system
    properties, and if not found there, it is then
    searched in the configuration file being parsed. The
    corresponding value replaces the ${variableName}
    sequence. For example, if java.home system property
    is set to /home/xyz, then every occurrence of the
    sequence ${java.home} will be interpreted as
    /home/xyz."
    So your guess was close.Good to know I can do that with all variable names. I should have know to look at the API too. Thanks again :o)

  • Jar file and properties file

    Hi all,
    I have a jar file packaged as com.company.java located in $JAVA_HOME/jre/lib/ext. It will read a properties file when it is initialized. As I know, properties file needed to put under $CLASS_PATH. So I put it under $JAVA_HOME/jre/lib/ext also. However, the JAR file failed to load the properties file.
    Below is a part that in JAR file for getting properties file.
    ResourceBundle rb = ResourceBundle.getBundle("abc",Locale.getDefault());
    s=rb.getString("key1");
    } catch (MissingResourceException e) {
    s=null;
    e.printStackTrace();
    Do I put the properties file in wrong location?
    Where do I put it to make it work?
    Rgds,
    unplug

    by default you have 3 class loaders that load classes as well as read resources:
    The bootstrap classloader (for the core classes)
    The extension class loader (finds anything in any .JAR placed in $JAVA_HOME/jre/lib/ext/ [which is the home directory for "extension modules"])
    And the system class loader (looks along the classpath, finds files inside JARs [listed in the classpath] and in normal subdirectory structures [of base directories listed in the classpath] that mirror the hierarchy of Java packages)
    Any of these is supposed to consult the previous loader on the above list first, and try a lookup on its own only if the previous loaders did not find a class.
    ResourceBundle.getBundle(String, Locale) uses the classloader of its caller to look for the properties. If your method calling getBundle() was called from another method inside your extension module it will first consult the extension classloader (which first consults the bootstrap classloader) and will not be able to use the system classloader. So you can place anything in the classpath but it won't help. And the extension class loader can only look into JARs, not plain package directories.
    If the getBundle() method were called directly from the application code, however, it will use the system class loader to locate the properties file.
    There is a method ResourceBundle.getBundle(String, Locale, ClassLoader) where you can pass in e.g. the system class loader if you know how to get it, so this might help. The application code would determine its own class loader and pass it to the method of your your extension module.
    But I am not sure that you should place the properties file in $JAVA_HOME/jre/lib/ext/ since this is intended for Java extensions rather than normal user code, it normally does not show up on the classpath. Also, if you place it along the classpath, you have to pass in the classloader to be used since your code was loaded by the extension classloader and has no immediate knowledge of the system classloader.
    But perhaps it would be wiser to load your resource bundle reader in the system classloader, like any other application code: Remember that classes loaded by the extension classloader have higher security privileges than normal application code (the security policy file that you can edit refers to application code!) and it is questionable whether a resource bundle reader needs that privileges. If it does not, you might just place it in the classpath rather than the extension directory. Then it is quite natural that a properties file will also be found on the classpath.

  • Where to store mysap.properties file?

    Hello,
    I'm trying to test application Test User Management under SAP J2EE engine of SRM UM. When I run page:
    http://mysite:54000/logon/TestUM
    there is an message:
    Test is disabled, please specify UM_TESTUM=true
    I assume that this "UM_TESTUM=true" setting should be put in mysap.properties file. My question is where to store mysap.properties file?
    Somewhere here?
    c:\usr\sap\SRM2_UM\j2ee\j2ee_40\cluster\server\services\servlet_jsp\work\jspTemp\logon\
    Thanks
    m./

    Path for tat file is:
    c:\sapmarkets\properties\mySAP.properties
    BR
    m./

  • Copy of SAP ESS objects to new namespace

    Hi,
    I need to take a copy of SAP ESS objects to new namespace and later want to do customization in the new object. I have requirement in which I do not want to change SAP delivered objects (sap.com)
    Scenario:
    (1)     Original object namespace: esscapdata u2026..sap.com
    (2)     New object namespace:      esscapdata u2026..abc.com
    Please let me know the solution ?

    Hi Anmol,
        Changing the name space is not very easy and might result in lot of errors. If required you first need to migrate the DC's to your new SC following the steps given in the post above. You need to do this only if required. For only changing the name space it is not required.
       Open the DC's in Developer Studio. You will have to manually go to every java file and change the package name to the required package name. Once you change the package name there will be lot of errors. You will need to fix the errors manually. Mostly it will be package not found error. Once all the errors are fixed a DC build will create the new files in your new package structure.
      Ideally this is not required for customization.
    Regards,
    Sanyev

  • Regenerate the security files : SecStore.properties and SecStore.key

    Hello Expert,
    I have a big issue because I lost the both files : SecStore.properties and SecStore.key from the directory /sapmnt/SID/global/security/data. I tried to regenerate the SecStore.properties  from another instance. And when I tried to connect via Configtool I have the following error message : The encryption key (usually in the key files) is
    not  the key that is required to decrypt the data in the secure store file or the system name is wrong (SID).
    I think that the idea is to generate the new key file.
    Could you please help me to find a solution to solve this issue.
    Many thanks in advance for your greatfull help.
    Regards
    San

    Check this out, though it doesn't directly address your problem. It should definately give you more insight.
    http://help.sap.com/saphelp_nw04/helpdata/en/cd/14c93ec2f7df6ae10000000a114084/frameset.htm

  • Error while accessing secure store: File "SecStore.properties" does not exi

    Hi ,
    I have a java desktop application, and i am trying to get a connection from a datasource deployed on one SAP AS Java, I can get the datasource succsfullly but when i try to get a connection from the DS, it throughs this exception, I put the secstore..properties file in the classpath even after that it is not happy,
    any solution/hint/light please!!!!
    com.sap.sql.log.OpenSQLException: Error while accessing secure store: File "SecStore.properties" does not exist although it should..
         at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:106)
         at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:145)
         at com.sap.sql.connect.OpenSQLDataSourceImpl.setDataSourceName(OpenSQLDataSourceImpl.java:226)
         at com.sap.sql.connect.OpenSQLDataSourceImpl.setDataSourceName(OpenSQLDataSourceImpl.java:197)
         at com.sap.customcode.ConflictingActionFixture.(ConflictingActionFixture.java:53)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at fit.FixtureClass.newInstance(Unknown Source)
         at fit.FixtureLoader.instantiateFixture(Unknown Source)
         at fit.FixtureLoader.instantiateFirstValidFixtureClass(Unknown Source)
         at fit.FixtureLoader.disgraceThenLoad(Unknown Source)
         at fit.Fixture.loadFixture(Unknown Source)
         at fit.Fixture.getLinkedFixtureWithArgs(Unknown Source)
         at fit.Fixture.doTables(Unknown Source)
         at fit.FitServer.process(Unknown Source)
         at fit.FitServer.run(Unknown Source)
         at fit.FitServer.main(Unknown Source)
    Caused by: com.sap.security.core.server.secstorefs.FileMissingException: File "SecStore.properties" does not exist although it should.
         at com.sap.security.core.server.secstorefs.StorageHandler.openExistingStore(StorageHandler.java:372)
         at com.sap.security.core.server.secstorefs.SecStoreFS.openExistingStore(SecStoreFS.java:1946)
         at com.sap.sql.connect.OpenSQLConnectInfo.getStore(OpenSQLConnectInfo.java:802)
         at com.sap.sql.connect.OpenSQLConnectInfo.lookup(OpenSQLConnectInfo.java:783)
         at com.sap.sql.connect.OpenSQLDataSourceImpl.setDataSourceName(OpenSQLDataSourceImpl.java:209)
         ... 18 more
    caused by

    the SecStore.key file was not there, I changed the passwd and checked the 'Encryption' on, after that my sever instance is not starting.
    Any idea?
    -Puneet

  • I am batch processing in PS 2014 (watermark and saving as jpeg from ps file). I get the message for some but not all 'this file needs to be saved as a copy with this option'. And then I have to save it manually. Does anyone know why this happens? (It is j

    I am batch processing in PS 2014 (watermark and saving as jpeg from ps file). I get the message for some but not all 'this file needs to be saved as a copy with this option'. And then I have to save it manually. Does anyone know why this happens? (It is just a plain photoshop file, a watermark is added, then save as jpeg - the jpeg is saved to a different folder than the original photoshop file.)  It happens for about 10 of 30/40  files approximately . Thank you, Kathryn

    I believe I have figured it out - I need to flatten the image, even though there are no layers except for layer 0, first.

  • What needs to be in my jndi.properties file to get oracle accessed by a jndi client

    I am trying to write a connection pool class that use jndi
    to locate the data base. I use "bindds" bind my OracleDataSource
    object with the name of 'test/jdbc/test'. I should then be able to do a lookup like: OracleDataSource ods =
    (OracleDataSource) ctx.lookup (test/jdbc/test)
    All Oracle code examples use (Context.INITIAL_CONTEXT_FACTORY,
    "com.sun.jndi.fscontext.RefFSContextFactory");
    Is this correct? And what other things should be in my jndi.properties file to access the naming service with comes with
    Oracle (Jserver)? For example to I need to include a Context.PROVIDER_URL value. I would think Oracle would have some
    standard way of accessing its own Naming service. Thanks David

    This implies that ODP.NET does NOT need to be installed on a client. However, I cannot find OraOPs9.dll on a machine with Client Release 9.2 installed. Should OraOps?.dll automatically come with a Client installation of 9.2 or higher?
    ODP.NET needs to be installed on the client. OraOps9.dll is part of ODP.NET, not the Oracle Client.
    Also, if an application is built with the 10g ODP.NET, can it be run from a machine with OraOps9.dll?
    If an application is built with 10g ODP.NET, it can be run with 9.2 ODP.NET as long as you do not use any 10g APIs. The new features in 10g ODP.NET are included in the doc and the ODP.NET FAQ for your reference.

Maybe you are looking for