CPS licensing for all the PRD systems
Hi
I have gone thorough the blog that relates to the CPS licensing, i haven't got the clear view that how this licensing stuff works for my scenario..so kindly assist me with the below scenario...
There are 4 systems for my client like SAP R/3, SAP CRM , SAP B/W and SAP Soltion Manager, now we are planning to go for CPS Tool in order avoid the pitfalls in our batch procesing.if i want to run CPS on all the production systems i mean to say 4 production systems how many server processers are required..and agents and adopters are required, and please sensitize me in terms of Agents , adopters and Server processes like what exactly they are, and for my R/3 Production system they is 1-CI(central Instance) and 4 APP servers , and for Solman there is only 1-CI and for CRM only 1-CI and BW there is 1-CI and 1-APP server , all our systems are running on Windows server 2003 and 2008, even we are planning our CPS to be on 2008 and SQL 2008..so kindly advise me in terms of the licensing like how many adapters and how many agents and how many server processers are realy required. is it required to pay anything in order to integrate CPS with Solution Manager...Thanks.
Hi Phaneendra,
CPS has a very simple licence model. The only licensed item on the SAP price list is called a Process Server.
For each SAP instance where you want to control jobs you need a CPS Process Server. In your case: R3, CRM, BW and Solman is 4 Process Servers.
Then you need to look at any non SAP events that you want to monitor or control. Like maybe an FTP file event or some data load comming from a non SAP application. On every server where you have these non SAP events you need to configure an additional Process Server.
Every Process Server includes a license for 1 Production environment and 3 non production environments (dev, test, fail over)
For the Solution Manager Adapter you do not require a Process Server License but if you have Solution Manager events that you want to control you have to configure a Process Server.
Does this answer your question?
Let me know if you need additional support.
Regards,
Richard Lock, Redwood Software.
Similar Messages
-
To get the logical system names of all the child systems in a CUA envirnmnt
Hi Gurus ,
Is there any table where we can find the logical system names of all the child sytems in a CUA environment .
This is for a requirement that i need to develop an automated process where we can reset the password of all the child system in a CUA environemt when requested by the user at once .
I found some tables such as V_TBDLS , but they do not contain the exact information what i need .
Thanks in advance ,
Harshit RungtaHi,
You are in the right track. BD54 will show you the logical system name for all the existed systems in CUA.
Else you can also go to your CUA system and execute t-code SALE --> Basic Setting --->Logical Systems ---> Assign logical system to client -
> Display details
here you can see logical system names for all the clients assigned to CUA.
Thanks,
Deb -
License for testing and production systems
Hi Experts
Can any one help me out on implementing license in my B1 System.
According to our contract we have licensed following user types:
User Type
Licensed
AddOn Access License 25
Professional User 5
Software Development Kit - Development Version 20
We have Test/development system in one hardware and Production system on different hardware. Please advice me how to request/allocate license for my test/development system and production system.
We tried creating a Test System in SAP Market place and requested license for test system. While requesting license for production system, it is found that the license is exceeded. In other words, developent system license also counted.
Please advice me on the best practices of B1 license implementation.
Thanks and regards
Ajith GHi,
Our customer wants to Keep the production data secure. Developers and consultants should not have the access to it.
Then you have only two options:
1.Either you should maintain a standalone b1 server for the developers and consultants to test their solutions and scenarios.
2.Otherwise you can create users in sql studio for accessing only the test database.
So that as per your requirement
All configurations and sample data will be kept in a test environment where developers and consultants can do their work.Once everything is correct Admin will do the transfer to production.
Note:New users can be created in the sql studio under Databases-><Company Db>->Security->Users, Rt.click new user -
Track the changes to the batch jobs in the PRD system.
Hello Basis Guru's,
Need your help in a Query. --> Is there any best practice that can be implemented to trace all the changes done to batch jobs in the past 3 months and going forward. Be it in its scheduling or its variant changes etc, i would like to track the changes to the batch jobs in the PRD system.
Any pointers would be really helpful.
Thanks in advance.
Rgds,
SriHello Raghu,
Third party tools can only help you but not SAP. . A lot of us may think that for example if a Job 'X' runs daily then SAP considers this job as a single object.However actually SAP will treat each run of a job seperately infact as seperate jobs. If you would have noticed each job in SAP has a job id which is unique. So actually each run is unique. Now change logs can exist for only those objects that get changed. But change logs can not exist for objects that are newly created everytime !!
If you would have noticed you can two jobs with the name A but running two different reports/variants whatver. This is because job name is not that important it is the job id.
Every time a job runs a new entry gets stored in TBTCO,TBTCP etc.. tables. It is not that the existing entires are updated.However yes when a job is scheduled periodically there is some kind of a link that is created in the job series but it does not showo up in any of the tables!!
As far as 3rd party tool is concerned I can name a tool like UC4. UC4 has its own database in which the job name will always be unique. For that you can easily find change logs. I think Chronicle (Redwood Scheduler) also supports this.
Regards.
Ruchit. -
Infotype screen headers needs to be changed for all the infotypes
Hi Guys,
This would be for a global implementation question.
For the US for a particular region, the screen header needs to be changed for all the infotypes.
The existing field (in the infotype header) is Employee Group which needs to be replaced with employment status.
The know how to change the headers but my question is STAT2 exists in IT 0000 but does not exist in 0001, 0002 0007.........etc
When i go to Table T588J to add an entry , Screen Header 42......,
I get an error " No Field STAT2 exists for infotype 0001"
No field STAT2 exists for infotype 0001.
Message no. PG811
Diagnosis
No STAT2 field exists for infotype 0001.
Procedure
Please contact your system administrator.
Procedure for System Administration
In Customizing, determine the incorrect entry in Personnel
Administration in the Header structure per infotype view, step " Determine infotype header and correct it
I would like to have some inputs from you guys ..... Any Suggessions...
Thanks,
AasthaHi Aastha,
Correct me if I am wrong.
First you need to maintain the header in T588J.
Screen header of an infotype is defined in view V_582A_B. We can define one screen header for employee and another for applicant in view V_T588I. The header modifier selected from view V_T588I has a definition in table T588J, which finally gets shown on the screen.
Depending on the transaction class (A = Personnel Administration, B = Recruitment) and the country grouping, a header modifier is assigned to the infotype header in the u201CHeader Modificationu201D view V_T588I.
For example like
Screen Header / Tr. Class / Header modifier
00 / A / 60
In the view u201CHeader Structure per Infotypeu201D (V_582A_B), a header has been assigned to every infotype. It also determines whether the data is valid from the system date or the start date of the infotype record
Hope this is useful.
Regards
RK -
i have a license for all adobe files but recently i had a virus and all my files were deleted.Now when i want to have them back with my redemption code it says that i cannot use it anymore.But my license is not expired.How do i get my files back??
Your redemption code was used to acquire an activation code. The activation code is what you need to use when you want to reinstall/enable the software again. Check your Adobe account online to see if the number(s) can be found there.
-
Resolve installed Flash player not excuted for all the Vista users on my PC?
I have a Windows Vista 32-bits system.
I have created 2 admin and 2 standard users.
Internet Explorer 9 (IE9) 32 bit is installed but also Chrome and Firfox are used.
For 1 admin user Flash works fine when accessing a site in IE9 that requires Flash.
For the other users, including the admin user, IE9 must be run "as adminstrator" by specifically choosing that option.
If not run "as administrator" IE9 states that Flash needs to be installed. That either leeds to Flash player not being installed (error is that it is already installed) or that after a succesful installation the problem simply occurs again (and again and again ...)
I want the standard users on the pc to be able to navigate to trusted sites without running IE9 in "as adminstrator" mode.
What do I need to do?
Can I set Adobe Flash player to be available for all the users for Vista and IE9?
Do I need to alter registry settings manually?
If yes - how and which?
Thanks in advance.Chris,
Thanks for the reply but unfortunately it does not resolve the problem.
Other users (including the other system administrator) still need to run IE as administrator.
When in my sysadmin account the shortcuts for other users to a URL requiring Flash and using IE9 execute fine GRRRRRRR.
This is very frustrating.
On my pc Chrome aand Modzilla have no problems.
The childrens protective software I have however is based on IE.
Do you have any more suggestions?
My alternative is to downgrade IE9 to IE8 or 7 but that is also not an easy exercise ...
Thanks in advance for any input. -
How to get the list of roles assigned to a user in all the child systems
how to get the list of roles assigned to a user in all the child systems from CUA SYSTEM
Try transaction SUIM in your CUA system. Go to user, cross-system information, users by roles. If you run it wide open, you'll get all users and all roles assigned for all systems managed in your CUA.
Krysta -
One PI set up for all the outbound interfaces
Hello Friends,
We have set of interfaces from SAP to 3rd party using PI system. We will not do any mapping for any interface in PI
We will receive the IDocs ( Orders , deliveries , shipping and alll ) from SAP and send it to 3rd party.
is there any way to send these IDoc's with only set up in PI ... only one repository and directory for all the messages )
ThanksHi
One way could be that on save of each transaction or event, an xml file is created which can be passed to the receiver.
Regards
Monika -
Query level formula is not working for all the amounts
Hi Friends,
In my production system I found new thing that in my query level I done some calculation (as per my requirement I done amount devide by 100 to get correct values)
It is working for all the amounts except 1or 2 amounts, im uploading same source file for all the amountsu2026 why it is happening like this u2026and is there any availability to change those 1 or 2 values at data base tables level or at any pleace (I hope in SAP it is may not possible)u2026can any body tell me why it is happening like this. u2026 because of this issue only my report is pending to sign off u2026.please can any body find the solution ASAP.
Regards,
VENKATAre they non decimal currencies?
If yes, create RKF1 on amount field excluding the currencies for which you are not getting currect values then in CKF or formula as RKF1 / 100. Similarrly create another RKF2 on amount only including the currencies which are excluded in RKF1, create a CKF or formula as RKF2/10000. Then created another formula wich adding CKF1 and CKF2. -
Hello,
I want to know if the installation file for adobe reader is it the same for all the windows ?
It is because I have to do an automatic installation for XP, seven and windows 8...
It is also the same between 32bits and 64bits ?
Thanks.
Best regards
Sofia LunaIt may be worth mentioning two things.
1. Adobe provide extensive information on Enterprise Deployment of Acrobat and Adobe Reader.
2. You may well need a redistribution license to do this, if you are installing on behalf of anyone (accepting EULA for them), pushing, or hosting etc. -
Hi
I need to know the command for getting list of softwares installed on all the remote systems in network which are existing in their respective registry like HKEY_LOCAL_MACHINE\SOFTWARE of all other systemsHey
Sorry this isn't powershell but it should do the job if you want to use it. The problem with using the Win32_Product WMI Class to enumerate the installed software (especially on Windows 2000 & 2003 Servers) is that the WMI class is NOT installed by default. Here is a VBScript i wrote to read a list of hostnames from a text file named "ComputerNames.txt" from the scripts directory and attempt to remotely enumerate all subkeys within the following registry key
HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall
For each subkey enumerated it will attempt to read the value of the "DisplayName" key and output the results to a csv file.
(the results should be the same as what you would see when you open Add/Remove Programs)
Hope that helps
Cheers
Matt :)
'Script Name : CheckInstalledSoftware.vbs
'Author : Matthew Beattie
'Created : 01/03/10
'Description : This script reads a list of hostnames from a text file name "ComputerNames.txt" in the scripts working
' : directory. For each hostName it requests an ICMP response and if successfull attempts a remote registry
' : connection to enumerate and read the registry values of installed software. All results are logged to the
' : scripts working directory in a log file per computer name.
'Initialization Section
Option Explicit
Const ForReading = 1
Const ForAppending = 8
Dim objFSO, wshNetwork, wshShell, hostName
Dim scriptBaseName, scriptPath, scriptLogPath
On Error Resume Next
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set wshShell = CreateObject("WScript.Shell")
Set wshNetwork = CreateObject("WScript.Network")
scriptBaseName = objFSO.GetBaseName(Wscript.ScriptFullName)
scriptPath = objFSO.GetFile(Wscript.ScriptFullName).ParentFolder.Path
scriptLogPath = scriptPath & "\" & IsoDateString(Now)
If Err.Number <> 0 Then
Wscript.Quit
End If
On Error Goto 0
'Main Processing Section
On Error Resume Next
PromptStart
ProcessScript
If Err.Number <> 0 Then
Wscript.Quit
End If
PromptEnd
On Error Goto 0
'Functions Processing Section
'Name : ProcessScript -> Primary Function that controls all other script processing.
'Parameters : None ->
'Return : None ->
Function ProcessScript
Dim fileSpec, hostNames, regKey, keyName, results, result
keyName = "DisplayName"
regKey = "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall"
fileSpec = scriptPath & "\ComputerNames.txt"
'Ensure the "ComputerNames.txt" file exists within the scripts working directory.
If Not objFSO.FileExists(fileSpec) Then
MsgBox DQ(fileSpec) & " does not exist!", vbCritical, scriptBaseName
Exit Function
End If
'Read the list of hostNames from the "ComputerNames.txt" text file within the scripts working directory.
If Not GetScriptInput(hostNames, fileSpec) Then
Exit Function
End If
'Attempt to read the registry from each hostname read from the list of hostnames.
For Each hostName In hostNames
Do
'Ensure the system responds to an ICMP request.
If Not CheckConnection(hostName) Then
LogMessage 2, "Failed to respond to an ICMP Request"
Exit Do
End If
'Enumerate and read the registry values.
If Not GetRegValues(results, hostName, keyName, regKey) Then
Exit Do
End If
'Log the registry values results.
For Each result In results
LogMessage 0, result
Next
Loop Until True
Next
End Function
'Name : GetScriptInput -> Reads a text file to be used as Script input.
'Parameters : items -> Output: An array of items in the script input file.
' : fileSpec -> The full folder Path, file Name and extention of the script input file.
'Return : GetScriptInput -> Returns an array of items for script input and True or False.
Function GetScriptInput(items, fileSpec)
Dim scriptInputFile, itemsDict, item
GetScriptInput = False
Set itemsDict = NewDictionary
If Not objFSO.FileExists(fileSpec) Then
Exit Function
End If
On Error Resume Next
Set scriptInputFile = objFSO.OpenTextFile(fileSpec, ForReading)
If Err.Number <> 0 Then
Exit Function
End If
On Error Goto 0
Do Until scriptInputFile.AtEndOfStream
item = scriptInputFile.ReadLine
If item = "" Then
Exit Function
End If
If Not itemsDict.Exists(item) Then
itemsDict.Add item, ""
End If
Loop
items = itemsDict.Keys
GetScriptInput = True
End Function
'Name : CheckConnection -> Checks a remote host using WMI ping.
'Parameters : hostName -> Hostname of computer system to verify network connectivity with.
'Return : Boolean -> True if hostname replies. False otherwise.
Function CheckConnection(hostName)
Dim ping, response, replied
Set ping = GetObject("winmgmts:{impersonationLevel=impersonate}").ExecQuery _
("select * from Win32_PingStatus where address = '" & hostName & "'")
For each response in ping
replied = Not IsNull(response.StatusCode) And response.StatusCode = 0
Next
CheckConnection = replied
End Function
'Name : GetRegValues -> Enumerates the subkeys in a registry key and the values of the keyName.
'Parameters : hostName -> String containing the hostName of the system to enumerate the registry keys on.
' : keyName -> String containing the name of the registry key value to enumerate.
' : regKey -> Registry key to enumerate subkey names for.
'Return : GetRegValues -> Returns True and an Array containing the registry key values otherwise False.
Function GetRegValues(results, hostName, keyName, regKey)
Dim objReg, regDict, rootKey, hive, keyValue, subKeys, i
GetRegValues = False
rootKey = regKey
hive = GetRegistryHiveFromKey(rootKey)
On Error Resume Next
If hive <> 0 Then
'Create a dictionary object to store the registry values in.
Set regDict = NewDictionary
If Err.Number <> 0 Then
LogMessage 1, "Creating Dictionary Object"
Exit Function
End If
'Connect to the remote registry.
Set objReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & hostName & "\root\default:StdRegProv")
If Err.Number <> 0 Then
LogMessage 1, "Creating StdRegProv Object"
Exit Function
End If
'Enumerate the subkey names within the regKey paramater.
objReg.EnumKey hive, rootKey, subKeys
If Err.Number <> 0 Then
LogMessage 1, "Enumerating Registry Keys"
Exit Function
End If
'Ensure the results are an array.
If Not IsArray(subKeys) Then
subKeys = Array(subKeys)
End If
'Read the registry key value for each subkey. Add the results to the dictionary.
For i = 0 to UBound(subKeys)
objReg.GetStringValue hive, rootKey & "\" & subKeys(i), keyName, keyValue
If Err.Number = 0 Then
If Not IsNull(keyValue) Then
regDict(regDict.Count) = keyValue
End If
Else
Err.Clear
End If
Next
End If
On Error Goto 0
results = regDict.Items
GetRegValues = True
End Function
'Name : GetRegistryHiveFromKey -> Get the hive ID from a registry key name.
'Parameters: Input/Output: key -> Registry key name. Hive name will be removed.
'Return : GetRegistryHiveFromKey -> ID of hive of given key name (0 if invalid).
' : -> The hive name is removed from the input key name.
Function GetRegistryHiveFromKey (key)
Dim pos, hive
pos = Instr (key, "\")
If pos = 0 Then
pos = Len(key) + 1
End If
hive = Left (UCase (Left (key, pos - 1)) & " ", 4)
key = Mid (key, pos + 1)
GetRegistryHiveFromKey = Array(0, &H80000000, &H80000001, &H80000002, &H80000003, &H80000005, &H80000006) _
(Int ((Instr("HKCR,HKCU,HKLM,HKU ,HKCC,HKDD", hive) + 4) / 5))
End Function
'Name : NewDictionary -> Creates a new dictionary object.
'Parameters : None ->
'Return : NewDictionary -> Returns a dictionary object.
Function NewDictionary
Dim dict
Set dict = CreateObject("scripting.Dictionary")
dict.CompareMode = vbTextCompare
Set NewDictionary = dict
End Function
'Name : DQ -> Place double quotes around a string and replace double quotes
' : -> within the string with pairs of double quotes.
'Parameters : stringValue -> String value to be double quoted
'Return : DQ -> Double quoted string.
Function DQ (ByVal stringValue)
If stringValue <> "" Then
DQ = """" & Replace (stringValue, """", """""") & """"
Else
DQ = """"""
End If
End Function
'Name : IsoDateTimeString -> Generate an ISO date and time string from a date/time value.
'Parameters : dateValue -> Input date/time value.
'Return : IsoDateTimeString -> Date and time parts of the input value in "yyyy-mm-dd hh:mm:ss" format.
Function IsoDateTimeString(dateValue)
IsoDateTimeString = IsoDateString (dateValue) & " " & IsoTimeString (dateValue)
End Function
'Name : IsoDateString -> Generate an ISO date string from a date/time value.
'Parameters : dateValue -> Input date/time value.
'Return : IsoDateString -> Date part of the input value in "yyyy-mm-dd" format.
Function IsoDateString(dateValue)
If IsDate(dateValue) Then
IsoDateString = Right ("000" & Year (dateValue), 4) & "-" & _
Right ( "0" & Month (dateValue), 2) & "-" & _
Right ( "0" & Day (dateValue), 2)
Else
IsoDateString = "0000-00-00"
End If
End Function
'Name : IsoTimeString -> Generate an ISO time string from a date/time value.
'Parameters : dateValue -> Input date/time value.
'Return : IsoTimeString -> Time part of the input value in "hh:mm:ss" format.
Function IsoTimeString(dateValue)
If IsDate(dateValue) Then
IsoTimeString = Right ("0" & Hour (dateValue), 2) & ":" & _
Right ("0" & Minute (dateValue), 2) & ":" & _
Right ("0" & Second (dateValue), 2)
Else
IsoTimeString = "00:00:00"
End If
End Function
'Name : LogMessage -> Parses a message to the log file based on the messageType.
'Parameters : messageType -> Integer representing the messageType.
' : -> 0 = message (writes to a ".csv" file)
' : -> 1 = error, (writes to a ".err" file including information relating to the error object.)
' : -> 2 = error message (writes to a ".err" file without information relating to the error object.)
' : message -> String containing the message to write to the log file.
'Return : None ->
Function LogMessage(messageType, message)
Dim prefix, logType
prefix = hostName
Select Case messageType
Case 0
logType = "csv"
Case 1
logType = "err"
message = "Error " & Err.Number & " (Hex " & Hex(Err.Number) & ") " & message & ". " & Err.Description
Case Else
LogType = "err"
End Select
If Not LogToCentralFile(scriptLogPath & "." & logType, hostName & "," & message) Then
Exit Function
End If
End Function
'Name : LogToCentralFile -> Attempts to Appends information to a central file.
'Parameters : logSpec -> Folder path, file name and extension of the central log file to append to.
' : message -> String to include in the central log file
'Return : LogToCentralFile -> Returns True if Successfull otherwise False.
Function LogToCentralFile(logSpec, message)
Dim attempts, objLogFile
LogToCentralFile = False
'Attempt to append to the central log file up to 10 times, as it may be locked by some other system.
attempts = 0
On Error Resume Next
Do
Set objLogFile = objFSO.OpenTextFile(logSpec, ForAppending, True)
If Err.Number = 0 Then
objLogFile.WriteLine message
objLogFile.Close
LogToCentralFile = True
Exit Function
End If
Randomize
Wscript.sleep 1000 + Rnd * 100
attempts = attempts + 1
Loop Until attempts >= 10
On Error Goto 0
End Function
'Name : PromptStart -> Prompt when script starts.
'Parameters : None ->
'Return : None ->
Function PromptStart
MsgBox "Now processing the " & DQ(Wscript.ScriptName) & " script.", vbInformation, scriptBaseName
End Function
'Name : PromptEnd -> Prompts when script has completed.
'Parameters : None ->
'Return : None ->
Function PromptEnd
MsgBox "The " & DQ(Wscript.ScriptName) & " script has completed successfully.", vbInformation, scriptBaseName
End Function
'Name : PromptError -> Prompts when an unexpected script error occurs.
'Parameters : None ->
'Return : None ->
'Function PromptEnd
' MsgBox "Error " & Err.Number & " (Hex " & Hex(Err.Number) & "). " & Err.Description, vbCritical, scriptBaseName
'End Function -
Deployment Optimizer - Equal weightage for all the locations in the network
Hello All,
I am having difficulty in assigning equal weightage for all the locations in the deployment network. My scenario is as described below:
Deployment Source location: LOC1
Destination locations: LOC2, LOC3
I am running Heuristics to plan LOC2, LOC3 & LOC1, followed by
a Deployment Optimizer run at LOC1 to deploy to LOC2 & LOC3.
ATD quantity at LOC1 is always calculated after saftisfying the requirements at LOC1 and the remainder is deployed to LOC2 & LOC3 based on the cost settings. This seems to be the case even if I don't run the heuristics at LOC1 and start deployment optimizer after running the heuristics at LOC2 and LOC3.
The need at this client place is that all three locations are equally important even though LOC1 is the only deploying source location.
This applies for all demand categories i.e. Sales orders, Forecast and forecast at all the three locations.
I would appreciate if anybody has done this kind of configuration before and let me know how to model this.
Thanks,
VenkatHave you follow all this checking ?
If you think that you already follow all the steps, but the value is not as per your config, you can raise ticket to SAP about it.
But I suggest you to double check your computation.
To determine a vendor's price level, the system compares the vendor's effective price with the market price for the material.
1. The system first checks whether the buyer has maintained a market price for the material or the material group.
2. If not, the system calculates the market price which is equal to the average of the effective prices for all vendors supplying this material. Prices from purchase orders and prices for subcontracting are dealt with separately.
3. The system then applies the effective price for the vendor from the conditions.
4. The vendor's effective price is then compared with the market price and the percentage variance determined.
5. The system then assigns a score to the variance in accordance with the settings made in Customizing.
6. This score is valid for the material, that is, at info record level. Since the score the vendor receives for a subcriterion is based not on an individual material, but on the total of all the materials he supplies, the following steps are necessary:
7. The system repeats the comparison between effective price and market price for each of the vendor's materials.
8. The system calculates an average from the sum of the scores determined. This average represents the vendor's score for the subcriterion Price Level.
Edited by: w1n on Apr 19, 2010 2:35 PM -
Log for all the sql statement executed
Hi,
I would like to know how to see the log for all the sql statement executed starting from connection to all the database related actions.
Is it something that i need to set it up in the driver?
I'm using Tomcat and JDBC driver.
Please reply.
Thanks,
AnjanaMake your own.
Calendar cal = new GregorianCalendar();
int year = cal.get(Calendar.YEAR);
int month = cal.get(Calendar.MONTH) + 1;
int day = cal.get(Calendar.DAY_OF_MONTH);
//use calendar object to get other infos such as time of query
//append your query string
File f =new File ("c:\\jakarta-tomcat-3.2.4\\webapps\\ASD\\LOGS\\log" + df.format(day) + df.format(month) + year + ".txt");
if (! f.exists())
f.createNewFile();
FileWriter fw = new FileWriter (f, true);
// append new log to end of file
fw.write(buf.toString());
fw.write("\n");
fw.flush();
fw.close();
catch (IOException ioe)
System.out.println(ioe.toString()); -
Getting control totals for all the objects
Hi All,
1. I want to get the control totals for all the tables along with table names in Oracle
the below I google and found, but I am not aware of xml in Oracle, I tested this on small scott db it works fine
select
table_name,
to_number(
extractvalue(
xmltype(
dbms_xmlgen.getxml('select count(*) c from '||table_name)
),'/ROWSET/ROW/C')) count
from user_tables order by 1is the above query correct?
2. I want all the view name
This I can get it from user_views ( but I want for entire database excluding system views and only user created views)
select view_name from user_objects3. I want all the sporc name( including the ones in the package and stand alone)
I am not sure how to get this.Be aware of the statement "Some columns in these views contain statistics that are generated by the DBMS_STATS package or ANALYZE statement."
See this page specially "Columns marked with an asterisk (*) are populated only if you collect statistics on the table with the ANALYZE statement or the DBMS_STATS package."
http://download.oracle.com/docs/cd/E11882_01/server.112/e10820/statviews_2117.htm#REFRN20286
If your statistic is not updated, it can give you totally wrong impression.
Maybe you are looking for
-
Centro (verizon) goes straight to VM after on standby for many hours
hi all. my verizon centro has worked flawlesly for a year. i did drop it a week ago but i don't think this started happening at the same time. every morning when i wake up, calls to my phone go straight to voicemail. i can't quite figure it out.
-
Compiling and running jsp-code on the fly.
I am intending to use jsp as a report engine. The 'templates' should be jsp-code stored in the db, loaded and executed as if they where inside a plain jsp-file in the application. I cannot write new files on the file system since this is prohibited o
-
How to overlap an image using css in my .cfm
Hi, I know this is a little off-topic, but in my gallery.cfm, I have a couple of rows that have an image in it, I was wondering how I can use css to put some text over the image? Like for example, how can I put some red text "Sold out" over toy1.jpg?
-
TS1424 Problem downloading a song from iTunes on Mac OS 10.7.4...
I have a message: "There was a problem downloading (song title). The file seems to be corrupted. To redownload the file, choose 'Check for Available Downloads' from the Store menu." I did this four times with the same result. Any ideas?
-
hi , where should i have to put my .dbc file in dicover server(location of discoverer please.) Thanks Prathap