Map printer via 'net use' batch file

Hello, 
I have a shared printer on a server in the domain AAA 
From another domain BBB, I map the printer with a simple batch script 
net use \\SERVER\printer /USER:AAA\login password 
it works fine under Windows XP but not with Windows 7 
Moreover, I also change this option in gpedit.msc 
Local Computer Policy> Computer Configuration> Windows Settings> Security Settings>
Local Policies> Security Options> "Network security: LAN Manager authentication level" >> Change to: “Send LM & NTLM, use NTLMv2 session security is negotiated”
other precision the command line for mapping is correct and execute successfully but print documents never leave while on a job in windows 7 the same domain AAA it works.
Does anyone have any idea why it does not work with windows 7
Thanks 

Hi,
Have you tried adding the printer to Windows 7 from Devices and Printers control panel?
http://groups.haas.berkeley.edu/HCS/howdoi/Printing/add_network_printer_vista_win7.pdf
Or you can use GPP to add a new printer:
http://blogs.technet.com/b/grouppolicy/archive/2009/06/24/gp-preferences-set-a-default-printer.aspx
Andy Altmann
TechNet Community Support

Similar Messages

  • PI needs to obtain a zip file via FTP using the File adapter

    I have a scenario where PI needs to obtain a zip file via FTP using the File adapter, this zip file contains a number of txt files that I need to process, and the content of one of them send it to an ECC, now I'm using the PayloadZipBean Module in the Sender FIle Adapter, and I have two things if I use the Message Protocol as File, I get a Payload for each txt file in the zip file, but this payload has no structure, and if I use the File Content Conversion I get an XML strcuture with only one field and a strange string in it, and somewhere in this string the names of the files I assume all the content of the zip file, can anyone help on how could I achieve what I need that is to pull the zip file via SAP PI, then unzip it, and with the content of one of the txt files send it to an ECC via ABAP Proxy, thanks in advance for your answers.
    Regards,
    Raul Alvarado

    Hello Raul,
    you can do it in futher way ...
    pickup zip file and simply extract and dump it in another temp folder (can use scripts on OS level).
    @ then Use another sender communication channel to pickup all these text file .
    for further clarification you can use these links also. -
    Process txt files in zip file
    Accessing File using FTP from Java Mapping
    File Sender Adapter with FTP protocol
    BR
    Raj

  • How to use batch files to send the load from ODC to UCM?

    Hello all.
    We're trying to do this along this week and, until now, we couldn't figure out how to use batch files containing metada on ODC and commit the output files to UCM.
    So these are our specs:
    VM 1
    ODC - 10gR3
    OS - Windows XP 32 bits SP3
    DB - Oracle DB 11.2
    VM 2
    No ODC
    UCM 11.1.1.6
    OS - Enterprise Linux Enterprise Linux Server release 5.5 (Carthage)
    We've opened a ticket with Oracle Support to know how we should do this. The number is SR 3-6108348211.
    Let me try to explain what we want to do:
    1 - we have a batch file with all metadata of many files from UCM
    2 - we want to use this file in ODC, so the application will convert the images and commit them to UCM
    3 - we should see all these files, their metadata, thumbnails and related content in UCM
    4 - this is a batch file example we want to send to ODC:
    @Properties LocalData
    IdcService=CHECKIN_UNIVERSAL
    dRevLabel = 1
    primaryFile=/tra/Relatorio_UHPF-03-04-2008-M-RL-EA.pdf
    dDocName=TRA_33
    dDocTitle=UHPF-03-04-2008-M-RL-EA
    dSecurityGroup=MAM_TRA
    dDocType=Document
    dDocAuthor=luis.neotropical
    dInDate=14/05/08
    xC_CLASSIFICACAO=EA - Educação Ambiental
    xC_DATA=01/04/08
    xC_DATAVALIDADE=30/04/08
    xC_LOCALIZACAOFISICA=N/D
    xC_USUARIO_DEP=LUIS FERNANDO DA CAMARA
    xC_TIPO=RL - Relatório
    xC_USINA=UHPF - USINA HIDRELÉTRICA PASSO FUNDO
    xC_FICHA=MAM - Relatorios Ambientais
    xC_IDDOCMAN=TRADocID=157
    xC_IDANEXODOCMAN=TRAFileID=33
    xC_DESTINOINICIAL=Tractebel
    xC_ORIGEM=Neotropical
    xC_FORMATODOCUMENTO=Digital
    xC_GENERODOCUMENTO=
    xC_DOCPRINCIPAL=Sim
    @end
    <<EOD>>
    5 - So, when we use this batch file on ODC, the file (or image) will be converted, all metadata attached and then sent to UCM.
    But we don't know how to do the link between ODC and UCM. The Oracle Support says it is necessary to do some customization. In the books I could not find any info about how to do, just generic information or how to use ODC.
    Is there a way (without customization) to do that? Can anyone give us a step-by-step guide?
    Thanks for all help and guidance.
    Fernando

    What is the one-sentence requirement or issue you're trying to solve?
    If you only want content to be converted to pdf, then you should already have that with your items checked into UCM (if you have IBR enabled).
    if you really want to feed content into ODC using a batchfile, my first thought would be to create a transformation utility/app that will convert your batchfiles to the expected ODC import server folder job format. then you'll have to move or map the content to match.
    Again, without knowing the exact issue/business requirement you're trying to work through, I'd say a redesign of your ingestion process may be in order.
    If you feed content directly into ODC through any supported ODC method (watch folder, email, scanner, fax, etc), then you'll be able to use everything ootb as you'll be able to auto-commit directly into UCM or add an indexing step and manual commit to UCM.
    ODC is basically a front end for indexing and extra ingestion options to your content repo.
    IPM is basically the same, but it includes some extra process-related details (process metadata, process integrations/bpel/bpm, other system integrations/ebs/crm, etc). I don't feel that IPM would help with the transformation-specific question you've put out there.
    -ryan

  • Need example commands to control an SX6000. Need to send them via a Win7 batch file.

    We need to turn our project on in the morning and off in the afternoon.  We have done this in the past for other projectors by sending commands via a Win7 batch file.  The documentation has no examples, just a rather cryptic syntax.

    The only way to get that data is either via the Outlook com object or using EWS. None of the commands in the Exchange shell look inside of a folder, the most you can get with those is email addresses for mail-enabled Public folders. Here is a link that can
    get you started with how to connect to public folders via EWS, then its just enumerating the folders and looping through the items in the folders for the details of the items. 
    http://gsexdev.blogspot.com/2013/08/public-folder-ews-how-to-rollup-part-1.html
    DJ Grijalva | MCITP: EMA 2007/2010 SPA 2010 | www.persistentcerebro.com

  • Rman backup fails on windows when using batch file

    Hello Gurus ..
    I am trying to setup incremental backup on my windows OS based server using RMAN command in batch file. When I use batch file in OS scheduler it is working fine, when I am calling same batch file from my LOCAL desktop PC it throws errors as below.
    D:\> \\3.193.211.19\sgdba\rman\bkp_acressit.bat
    D:\>rman catalog rman/******@acressit target / cmd
    file=E:\sgdba\rman\bkp_arch.rcv log E:\sgdba\rman\sit_arch_rman_backup.log
    RMAN-00557: could not open MSGLOG "E:\sgdba\rman\sit_arch_rman_backup.log"
    Argument Value Description
    target quoted-string connect-string for target database
    catalog quoted-string connect-string for recovery catalog
    nocatalog none if specified, then no recovery catalog
    cmdfile quoted-string name of input command file
    log quoted-string name of output message log file
    trace quoted-string name of output debugging message log file
    append none if specified, log is opened in append mode
    debug optional-args activate debugging
    msgno none show RMAN-nnnn prefix for all messages
    send quoted-string send a command to the media manager
    pipe string building block for pipe names
    timeout integer number of seconds to wait for pipe input
    checksyntax none check the command file for syntax errors
    Both single and double quotes (' or ") are accepted for a quoted-string.
    Quotes are not required unless the string contains embedded white-space.
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00556: could not open CMDFILE "E:\sgdba\rman\bkp_arch.rcv"
    Contents of the batch file and RCV file as below:
    Batch File:
    rman catalog rman/*******@acressit target / cmdfile=E:\sgdba\rman\bkp_arch.rcv log E:\sgdba\rman\sit_arch_rman_backup.log
    RCV File:
    RUN {
    ALLOCATE CHANNEL ch1 TYPE
    DISK FORMAT 'E:\ORA_RMAN_BACKUP\ARCH_%d_%u_%s_%p';
    BACKUP ARCHIVELOG delete input;
    RELEASE CHANNEL ch1;
    EXIT;
    --------------------------xxxxxxxxxxxxxx------------------------
    * on my DB server I am login using my administrator account, on my PC I dont have admin account.
    * I have checked remote execution using local user as well as admin user.
    * I have checked the permission and my local ID & EVERYONE has all permission in that folder.
    Any help will be appriciated.
    Thanks & Regards
    Ashish

    Ashish wrote:
    hi Atil,
    u have guessed it correctly, I came to know that issue later I copy file on local PC and it works fine.
    Now I am working on netbackup server. I want to use the same script to initiate backup from netbackup server. Do you have any idea or any guidelines from you will appriciate.
    Thanks
    AshishAshish,
    Is it "symantec's netbackup"? I do not know that product and if it has an option to enter your own RMAN scripts. On the other hand, it should be able to create irman scripts according to your backup job definition.
    Regards
    Gokhan

  • Problem on using batch file

    Hi,
    I have an application which reads data from a text and writes them to a database. I should use batch files in my project to work classes with double clicking on them. Java application reads path of the text file from a properties file. I used relative paths like that " ..\\data\\records.txt" for text file path . But my problem is that; when I run application normally it executes. But when I tried to run it from batch file placed build folder(under project folder) it does not work. Because it tries to find the data folder under the build folder. But data folder is under parent folder of build folder. My batch file code is like that :
    SET PATH=%JAVA_HOME%\bin;%PATH%
    SET LIB_PATH=..\lib
    SET CLASSPATH=%LIB_PATH%\mysql-connector-java-3.0.17-ga-bin.jar;..\bin;..\
    java.exe yega.timesheet.MainApplication ..\\configuration\\properties.props
    pause
    Which statements should I add(and where) to make this batch file search for data folder under its parent folder... Please help me.
    Thank you.

    Thanks Paul, but I tried to use cd before running program. I added "cd .." or "cd ..\" lines to batch file but they didn't work. I decided to use absolute path instead of using relative paths. I also found one more solution. I can put a properties file in build too. And define text path as " ..\\data\\records.txt " in this properties file.
    Also I need to use "\\" because "..\\configuration\\properties.props" is the input for args...

  • Call ggsci using batch file from windows- get error

    i create a script to use ggsci, start manager, extract and replicat.
    i have success doing this in my linux.
    here is one of my script : start_ext1.sh
    cd /u01/app/oracle/ggs
    ./ggsci <<EOF
    start manager
    start ext_s
    exit
    EOF
    clear
    i have an error when i do this using batch file from windows.
    here is the batch file :
    @echo off
    cd C:\putty
    plink.exe -ssh -2 -P 22 [email protected] -pw oracle "./start_ext1.sh"
    every time i try to enter ggsci when i run that batch file, i get this error :
    ./ggsci: error while loading shared libraries: libnnz10.so: cannot open shared object file: No such file or directory
    i didn't get this error when i run the script in linux.
    is there anybody can help me?
    thanks a lot!

    problem solved!
    add : . ./.bash_profile before enter ggsci.
    it's worked! :)

  • Run Form using Batch file

    Hiii
    how can run a form using batch file (.bat) .. .
    ???

    i forget to say that am using Developer 10g R2 ...
    another question is what should i start when using the batch file other than the
    OC4J instance .....

  • How to install and set printer paper and tray automatically via script or batch file

    Hi,
    Our firm using HP Printers and we need to deploy printer in Citrix Environment where setting does not save to the Base PC Image.
    Because our Environment is Citrix (User Settings and Printer are deployed when user login).
    Can we build the setting into the Base PC Image for All users?
    Printer get install when using login.
    Problem that I am encounter right now are:
    1. How to correctly identify all tray from each printer.
    2. How to set all paper tray to A4
    I am currently using Powershell Script to install printers during login, all the printer driver has been installed to the Base PC Image.
    But the trouble I have is when the script run to completion.
    It only added the printer.
    I've been googling, but I can't find a way to detect printer tray or how to set all the tray to A4.
    I don't mind using any type of script/batch file or even program.
    Any of the following language is C#, VB.NET, powershell, vbscript or Event Access to HP API ?
    Our Environment:
    Windows 7 x32 SP1
    Windows Server 2008 R2 (Print Server)
    I am using the PCL 6 Printer Driver.
    Our Printers are:
    HP LJ CP1025NW
    HP C LJ 4650
    HP C LJ 3525
    HP LJ 1045
    HP LJ 2050
    HP LJ 3055
    HP LJ 4015
    HP LJ 4350
    HP LJ 4700
    HP LJ 2035n
    Thanks in advance
    Regards Dat.

    Most of those printers are commercial grade printers.  It would be best to post in the commercial LaserJet forums.
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • Use batch file to determine if computer is a terminal server

    Hello experts,
    I am trying to create a batch file that I can use to install MS Office 2013 and another software on Windows Server 2003 R2,
     Windows Server 2008 R2, and Windows Server 2012 terminal servers (Remote Desktop Services) via GPO. The installation files are NOT
     "msi" files.  Can you please tell me how I can use command line in a batch or script file to determine if a machine is a terminal server or not? I tried the Change user /query command on a Windows Server 2008 R2
    terminal server and a Windows 7 machine and both machines returned the following status
    Application EXECUTE mode is enabled.
    which will be a problem because the installation batch file would treat the Windows 7 machines as a terminal server when it's not really a terminal server.
    Basically, I want the batch file to check to determine if the machine is a terminal server. If it is a terminal server, then it would run change user /install, install the software, reboot server, then run change user
    / execute.  Your help will be greatly appreciated.

    Hi,
    For Office 2013 there should not be any concerns since it is windows installer based and things will be handled automatically.  For the other software you could simply put the session in install mode in every case.  For the servers/workstations
    where install mode doesn't apply the change user /install and change user /execute will simply fail without any harmful effects.
    You may check whether or not the machine is a terminal server using WMI, for example:
    wmic /namespace:\\root\CIMV2\TerminalServices PATH Win32_TerminalServiceSetting Get TerminalServerMode
    0 = Remote Administration mode (not a RDSH/TS)
    1 = Application Server mode (aka RDSH/Terminal server)
    -TP
    When I run the command from the command line, it works, but when I try it in a "IF" statement, nothing happens.  I am I doing something wrong using the wmic code in the IF statement?

  • Remove odbc system dsn using batch file and odbcconf

    I create user system dsn entries by using a batch file and odbcconf call.  I've found references here on how to do that, yet cannot seem to find any results on how to remove them using that same call.  The library information (http://msdn.microsoft.com/en-us/library/ee388579(VS.85).aspx) states add and modify a system dsn for configdsn and configsysdsn and references equivalent to SQLConfgDataSource function. (http://msdn.microsoft.com/en-us/library/ms716476(VS.85).aspx) but the config data source function has a a removal and this doesn't seem too. 
    Apologies for being obtuse, but I can't seem to locate it.  Any links to how this is done from a batch file are much appreciated.
    Regards,
    NR.

    John C is basically correct, you can remove a System ODBC data source via the registry, but there is apparently no way via odbcconf.exe.  That is of course really stupid and poor programming!
    John, however, forgot another important registry entry.  That key deletion he mentioned will disable the odbc connection, but not remove it entirely.  If you just do that and then open the "ODBC Data Source Administrator", you will find the
    connection is still listed, but you can't remove it or modify it.  It becomes completely screwed up! There is a value to delete as well which dictates if the connection is listed.  Consider it the "header" to the data source.
    Also, in Windows 2003 and 2008 at least, the registry key John C listed is not quite the location to modify either.  This is where to find them in those OSs:
    HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\%DSN%
    or
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBC.INI\%DSN%
    The "header" I reffered to is a string value in inside a key (not the whole key!)
    HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources
    or
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBC.INI\ODBC Data Sources
    The string value is the data source name.  This entry must be removed to remove the data source listing entirely.
    Here are some batch snipets for creating and then removing an odbc data source.  I'm leaving out some premiliary chunks, but you can figure it out from here. If you can't, you probably shouldn't be messing with this stuff in the first place!
    In these scripts, I create and remove a 32-bit data source in either a 32-bit or 64-bit version of windows.  The windows folder variable gets set to either "C:\Windows\System32" or "C:\Windows\SysWOW64" depending on the os.  In case you didn't
    know, on a 64-bit machine there is are also 2 differrent versions of the "ODBC Data Source Administrator" gui tool and the data source lists differ (32-bit vs 64-bit lists).  The 32-bit version on a 64 bit OS is found at "C:\Windows\SysWOW64\odbcad32.exe". 
    The one in the start menu will load the 64-bit version so you will never find your 32-bit connections there.
    Note - for simplicity I use the database name as the user name and and the data source name as well (in case there was any confusion). 
    Create the connection like so:
    echo Creating 32-Bit System ODBC Connection "%DatabaseName%"...
    "!WindowsFolder!\ODBCCONF.EXE" CONFIGSYSDSN "!ODBCDriver!" "DSN=%DatabaseName%;Server=localhost;Port=3306;Database=%DatabaseName%;UID=%DatabaseName%;PWD=%DatabasePassword%"
    And then remove it like this:
    echo Removing 32-Bit System ODBC Connection "%DatabaseName%"...
    if "%WindowsBits%"=="32" (
    If Exist "!TempRegFile!" Del "!TempRegFile!"
    echo Windows Registry Editor Version 5.00>>"!TempRegFile!"
    echo.>>"!TempRegFile!"
    echo [-HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\%DatabaseName%]>>"!TempRegFile!"
    echo [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources]>>"!TempRegFile!"
    echo "%DatabaseName%"=->>"!TempRegFile!"
    regedit /s "!TempRegFile!"
    ) else (
    If Exist "!TempRegFile!" Del "!TempRegFile!"
    echo Windows Registry Editor Version 5.00>>"!TempRegFile!"
    echo.>>"!TempRegFile!"
    echo [-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBC.INI\%DatabaseName%]>>"!TempRegFile!"
    echo [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBC.INI\ODBC Data Sources]>>"!TempRegFile!"
    echo "%DatabaseName%"=->>"!TempRegFile!"
    regedit /s "!TempRegFile!"
    If Exist "!TempRegFile!" Del "!TempRegFile!"

  • AUTOMATION OF IMPORTING USING BATCH FILES...!

    Hello Everyone!
    I want your help on this matter. Actually I am trying to get data( in the form of XML) from BI into MDM SP04.
    I want to automate the import process. i have saved the map and defined a port in the console and given the map name for the port.
    now i configured the INI file present in the import manager batch.
    I read somewhere that to run the importmanagerbatch.exe file i need to create a batch file having info about the INI file and then run the batch file which will execute the .EXE file.
    But after doing this still data is not cmg in the repository.
    Can anybody list me down all the required steps to automate importing. N can more than 1 map be taken care of in the console? or probably for every map we will have to create new ports for them?
    I am totally confused....... please help me out.
    Thanks and Regards.
    Nitin jain.

    Hi, Nitin,
    The Import Batch can handle any number of maps in one batch process. It does have a limitation that the batch ini file will only reference 1 import file. But that file can contain any number of records and different table data.
    I have used the Import Batch (only useable on Windows) for importing multiple check table data into the repository. In the dat file, I used the following code for each map. This is the code for the Partner Function.
    :: IMPORT MAPS
    cd "C:Program FilesSAP MDM 5.5Import Manager Batch"
    @echo . STARTED Map: "Partner Functions" %DATE% %TIME% >> "C:MDMImportReport.log"
    @echo Executing Map: Partner Functions
    ImportManagerBatch.exe /INI "C:MDMMdmImportCheckTables.ini" /CLIENTSYSTEM "R/3 4.7" /MAP "Partner Functions"
                /LANGUAGE "English [US]" >> "C:MDMImportReport.log"
    IF errorlevel 0 (echo . Completed successfully. >> "C:MDMImportReport.log")
               ELSE  (echo . FAILED with error code %errorlevel% >> "C:MDMImportReport.log")
    IF errorlevel 0 (echo Completed successfully - %TIME%) ELSE (echo FAILED with error code %errorlevel%)
    @echo . Ended Mapping: "Partner Functions" %DATE% %TIME% >> "C:MDMImportReport.log"
    @echo .   >> "C:MDMImportReport.log"
    I then repeated this code in the batch.dat file for each map used. In total I had 93 maps.
    Kristin

  • Error Executing Interface using batch file

    Hi All,
    I am currently using a batch file to execute particular interface from remote location.
    The steps I used before executing are
    1. I have created the scenario for the interface.
    2. I have used this in the batch file to run the interface.
    3. I have mapped the network drive to get the startscen.bat file.
    The error which was generated was (Z - mapped server name)
    Z:\ODI\oracledi\agent\bin>startscen.bat Sample_interface 001 Sample_context -NAME=Sample_AGENT
    OracleDI: Starting scenario SAMPLE_INTERFACE 001 in context SAMPLE_CONTEXT .
    2011-10-11 10:06:45.404 ERROR ODI-1132 Agent SAMPLE_AGENT encountered an warning: O
    DI-1419: Warning connecting to Agent SAMPLE_AGENT: JDBC connection error occurs whi
    le connecting to the work repository WORKREP.
    ODI-1419: Warning connecting to Agent SAMPLE_AGENT: JDBC connection error occurs wh
    ile connecting to the work repository WORKREP.
    Caused By: oracle.odi.core.config.WorkRepositoryResourceFailureException: org.sp
    ringframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connecti
    on; nested exception is java.sql.SQLException: Exception occurred while getting
    connection: oracle.ucp.UniversalConnectionPoolException: Cannot get Connection f
    rom Datasource
    at oracle.odi.core.repository.Repository.getWorkRepository(Repository.ja
    va:150)
    at oracle.odi.core.OdiInstance.createWorkRepository(OdiInstance.java:512
    at oracle.odi.core.OdiInstance.<init>(OdiInstance.java:565)
    at oracle.odi.core.OdiInstance.createInstance(OdiInstance.java:529)
    at oracle.odi.StartScen.main(StartScen.java:163)
    Caused by: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not
    get JDBC Connection; nested exception is java.sql.SQLException: Exception occurr
    ed while getting connection: oracle.ucp.UniversalConnectionPoolException: Cannot
    get Connection from Datasource
    at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(Dat
    aSourceUtils.java:82)
    at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:
    524)
    at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:58
    8)
    at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:61
    3)
    at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:64
    5)
    at org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:111)
    at org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:121)
    at org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:136)
    at oracle.odi.core.repository.support.RepositoryUtils$RepositoryInfoSour
    ce.loadRepositoryInfo(RepositoryUtils.java:179)
    at oracle.odi.core.repository.support.RepositoryUtils.loadWorkRepository
    Info(RepositoryUtils.java:379)
    at oracle.odi.core.repository.Repository.getWorkRepository(Repository.ja
    va:148)
    ... 4 more
    Caused by: java.sql.SQLException: Exception occurred while getting connection: o
    racle.ucp.UniversalConnectionPoolException: Cannot get Connection from Datasourc
    e
    at oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter.doGetConnect
    ion(LoginTimeoutDatasourceAdapter.java:133)
    at oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter.getConnectio
    n(LoginTimeoutDatasourceAdapter.java:62)
    at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(D
    ataSourceUtils.java:113)
    at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(Dat
    aSourceUtils.java:79)
    ... 14 more
    Caused by: java.sql.SQLException: Exception occurred while getting connection: o
    racle.ucp.UniversalConnectionPoolException: Cannot get Connection from Datasourc
    e
    at oracle.ucp.util.UCPErrorHandler.newSQLException(UCPErrorHandler.java:
    541)
    at oracle.ucp.jdbc.PoolDataSourceImpl.throwSQLException(PoolDataSourceIm
    pl.java:587)
    at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.j
    ava:668)
    at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.j
    ava:613)
    at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.j
    ava:607)
    at oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter$ConnectionPr
    ocessor.run(LoginTimeoutDatasourceAdapter.java:217)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:44
    1)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
    utor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
    .java:908)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: oracle.ucp.UniversalConnectionPoolException: Cannot get Connection fr
    om Datasource
    at oracle.ucp.util.UCPErrorHandler.newUniversalConnectionPoolException(U
    CPErrorHandler.java:421)
    at oracle.ucp.util.UCPErrorHandler.newUniversalConnectionPoolException(U
    CPErrorHandler.java:389)
    at oracle.ucp.jdbc.DriverConnectionFactoryAdapter.createConnection(Drive
    rConnectionFactoryAdapter.java:133)
    at oracle.ucp.common.UniversalConnectionPoolImpl$UniversalConnectionPool
    Internal.createOnePooledConnectionInternal(UniversalConnectionPoolImpl.java:1570
    at oracle.ucp.common.UniversalConnectionPoolImpl$UniversalConnectionPool
    Internal.access$600(UniversalConnectionPoolImpl.java:1378)
    at oracle.ucp.common.UniversalConnectionPoolImpl.createOnePooledConnecti
    on(UniversalConnectionPoolImpl.java:445)
    at oracle.ucp.common.UniversalConnectionPoolImpl.borrowConnectionWithout
    CountingRequests(UniversalConnectionPoolImpl.java:302)
    at oracle.ucp.common.UniversalConnectionPoolImpl.borrowConnection(Univer
    salConnectionPoolImpl.java:129)
    at oracle.ucp.jdbc.JDBCConnectionPool.borrowConnection(JDBCConnectionPoo
    l.java:119)
    at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.j
    ava:655)
    ... 9 more
    Caused by: java.sql.SQLException: ORA-01017: invalid username/password; logon de
    nied
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.ja
    va:70)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:1
    33)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :206)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:406)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:399)
    at oracle.jdbc.driver.T4CTTIoauthenticate.receiveOauth(T4CTTIoauthentica
    te.java:799)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:368)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
    508)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:203)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
    n.java:33)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:510)
    at oracle.ucp.jdbc.DriverConnectionFactoryAdapter.createConnection(Drive
    rConnectionFactoryAdapter.java:129)
    ... 16 more
    Thank you,
    Regards
    Rav

    Hi All,
    Please update if any encountered a similar error.
    Thank you,
    Regards
    Rav

  • How to delete a file by using batch file

    hi
    i tried for deleting a file from batch filr in Linux environment.
    it is working when i run batch file thruogh command line.
    but its not woking through program.
    i am sending tha code that i used in tha program.
    First i have to create the file and send the information to that file
    and the content from taht file after that i have to delete the file.
    For that i wrote code but the batch is not woking.
    Batch file
    @echo off
    rm filename
    Actual Program Code
    I used RunServer
    public class RunServer extends Object
    RunServer();
    String cmdServer = "test.bat";
    Runtime run = Runtime.getRuntime();
    Process p = null;
    try
    p = run.exec(cmdServer);
    catch(IOException e)
    System.out.println("Error:"+e);
    By using RandomAccessFile i am creating a file
    please help me
    Thankyou

    1) You can't execute a batch without having a shell.
    2) It's totally stupid to run a one-line batch file from system.exec.
    3) It's also totally stupid to delete a file using Runtime altogether.
    But there you go...

  • CREATE MULTIPLE TABLES USING BATCH FILE OR ANYOTHER MODE

    Dear Legends,
    I want to create Multiple table at a single stroke in oracle sql developer or sql*plus using any mode like batch file or sql files...
    I dont know the exact mode and how to create it please guide me..I want to learn more about this since am a DBA Beginner..
    Any kind of help would be appreciated more...Thanks in Advance
    Regards,
    Karthik..

    Hi Everyone,
    According to your suggestion I did everything and all works fine yesterday... But today the same script.bat file is not opening sqlplus...
    as soon as I double click the bat file it opens the prompt and it shows upto the copyright ..oracle all rights reserved. sql> prompt is not visible or upto that it strucks... please help me..
    My SCRIPT.BAT
    @echo off
    set ORACLE_SID=VESS
    set PATH=%oracle_home%\bin\
    sqlplus scott/tiger@VESS @test.sql
    echo "Disconnected"
    My test.sql
    select * from tab;
    Please help me...
    Regards,
    Karthik..

Maybe you are looking for

  • IPhone 4 associated to Mac iTunes, sync lost after being plugged to Win 7

    Hello, I usually sync my iPhone to my Mac. Sometimes I plug it to another computer with Windows 7 installed and I copy files with CopyTrans Manager. One time, I lose the Mac association because of a bug with iTunes on Windows 7, which caused iTunes M

  • How to attach condition type to a vendor

    hi this problem is related to import procurement. for import procurement we have one condition type ZDUT - (copy of custom duty). we have defined custom official as one vendor (xyz) to whom we pay custom duty. we want this condition type ZDUT to be a

  • 3GS cell data off is the only way to preserve battery, what is wrong?

    I turned off 3G, push data to once an hour, all location and notification services off, closed all applications, wi-fi off, and the battery drains 1% every 2-3 minutes. Only when I turn cell data off does the drain stop. I'm running the most recent O

  • What is a node in abap-hr

    Hi all, Can you plz explain the difference between node and  tables . ex:-- node : infotypes: 0000 get <  > ex:-- tables : pernr / objec infotypes : 0000. get < pernr/ objec> Thanks and regards, Ravi

  • Manipulating XML with JDOM (IllegalAddException)

    How can I add an element that already have an existing parent to another element that should be its new parent? Currently I am getting an org.jdom.IllegalAddException because adding an element that have an parent to an new created element. let say: E