Change server time will change database time?
If a change my unix hour (because summer hour) the database will change without any commands or i need to do something?
Tks,
Elber.
Yes, SYSDATE will pick up the underlying operating system's date and time.
If you are changing the time zone in which the server resides, though, make sure that the operating system time zone and the database time zone are in sync if you are using any TIMESTAMP columns.
Justin
Similar Messages
-
Hello,
The current server time for global ASCP implementation is US-eastern time. We would like to change it to India time (IST), so the plans can be launched earlier and as the next day starts earlier.
Any ideas are appreciated.
Regards,
Sash871486 wrote:
Hi to all,
I have 10.2g database on a Windows Server 2003 in production.
What would be the impact on the database if I change server time i.e. if I roll the clock backwards?
My database server takes time from my DC server and I wont to roll the clock backwards on DC server.
Thanks!The schedulers will be affected. I mean by the schedulers; Oracle defined schedulers (maintenance window, etc...) and user defined schedulers. -
Re-start Oracle 10g DB is required if server time is changed?
I had a doubt that will a re-start of Oracle 10g DB be required if there is a change in server time? Our Server OS is RHEL 4.0(Linux). The server time is probably behind the time by 15 mins.
I hope, my question is clear.
Please, help in solving the doubt.
regardsEven though it is not required to stop/start the database when the OS time is changed, based on personal experience, I would highly recommend that you stop the applications and database before changing the OS time. We had Linux admin change the time once and mistakenly had the value for the year in the date out one year in the future. They caught the mistake quickly and reset to the to the proper date and time but the damage was already done. The time you spend fixing all jobs, especially if running Oracle applications where alerts and processes fire off thinking it is past time to run, is much less pain than scheduling a downtime for the time change and verifying the date/time befort starting things up again. It may be low risk and it up to you but it isn't fun trying to explain to the user community and management the reason that something like this happened.
-
Hi to all,
I have 10.2g database on a Windows Server 2003 in production.
What would be the impact on the database if I change server time i.e. if I roll the clock backwards?
My database server takes time from my DC server and I wont to roll the clock backwards on DC server.
Thanks!871486 wrote:
Hi to all,
I have 10.2g database on a Windows Server 2003 in production.
What would be the impact on the database if I change server time i.e. if I roll the clock backwards?
My database server takes time from my DC server and I wont to roll the clock backwards on DC server.
Thanks!The schedulers will be affected. I mean by the schedulers; Oracle defined schedulers (maintenance window, etc...) and user defined schedulers. -
How to change server time?
Can some one guide me how to change the server time in Solaris 10.
Actually i need to advance the server time to 15 mins.
thanks!Take a glance through the man pages for date.
It's been a couple of years since I last used it,
but when I did, it was for the express purposes
of changing the system date to a specific time.
It was on an old SB100 with an unpatched OBP.
Their system clocks would wander all over the place
until the problem got fixed with an OBP update.
If I recall, the command syntax I used was something like ...
# date HHmm.ss <enter>
For example -- "date 1832.50" would be for 18:32:50 o'clock of the system's current day and timezone.
... then I used the simpler date command syntax to check up on the results.
# date <enter>
Other forum contributors may have their favorite suggestions, as well. -
Changing database server on a report with subreports = formula error
Good morning,
I currently have several reports that print out, and were developed attached to our development database. However, I need to be able to dynamically change the server that the report uses according to the server configured in our application. Each of these reports contains one or more subreports, which point to the same server and database as the main report. All reports, both the main and subreports, are based on manual SQL commands.
I'm running into some significant issues. So significant, in fact, that we were forced to deploy our application with reports that had been switched to our production environment in the designer in order to get them functional. This is, obviously, not an acceptable or long-term solution.
I've gone round and round a couple of times I get different results with different methods of changing this information. I'll outline them below. First, my current code:
ConnectionInfo connectionInfo = new ConnectionInfo();
TableLogOnInfo logOnInfo = new TableLogOnInfo();
Console.WriteLine("Report \"{0}\"", report.Name);
foreach (Table table in report.Database.Tables)
logOnInfo = table.LogOnInfo;
connectionInfo = new ConnectionInfo(logOnInfo.ConnectionInfo);
connectionInfo.ServerName = "panthers-dev";
connectionInfo.DatabaseName = "Prosys";
logOnInfo.ConnectionInfo = connectionInfo;
//table.Location = "Prosys.dbo." + table.Location.Substring(table.Location.LastIndexOf(".") + 1);
table.ApplyLogOnInfo(logOnInfo);
table.LogOnInfo.ConnectionInfo = connectionInfo;
Console.WriteLine("\t\"{0}\": \"{1}\", \"{2}\", \"{3}\", {4}", table.Name, table.LogOnInfo.ConnectionInfo.ServerName, table.LogOnInfo.ConnectionInfo.DatabaseName, table.Location, table.TestConnectivity());
foreach (Section section in report.ReportDefinition.Sections)
foreach (ReportObject ro in section.ReportObjects)
if (ro.Kind == ReportObjectKind.SubreportObject)
SubreportObject sro = (SubreportObject)ro;
ReportDocument subreport = report.OpenSubreport(sro.SubreportName);
Console.WriteLine("\tSubreport \"{0}\"", subreport.Name);
foreach (Table table in subreport.Database.Tables)
logOnInfo = table.LogOnInfo;
connectionInfo = new ConnectionInfo(logOnInfo.ConnectionInfo);
connectionInfo.ServerName = "panthers-dev";
connectionInfo.DatabaseName = "Prosys";
logOnInfo.ConnectionInfo = connectionInfo;
//table.Location = "Prosys.dbo." + table.Location.Substring(table.Location.LastIndexOf(".") + 1);
table.ApplyLogOnInfo(logOnInfo);
table.LogOnInfo.ConnectionInfo = connectionInfo;
Console.WriteLine("\t\t\"{0}\": \"{1}\", \"{2}\", \"{3}\", {4}", table.Name, table.LogOnInfo.ConnectionInfo.ServerName, table.LogOnInfo.ConnectionInfo.DatabaseName, table.Location, table.TestConnectivity());
Using this approach, my console output prints what I expect and want to see: the correct server and database information, and True for TestConnectivity for all reports and subreports. The two reports I have that have no subreports print out correctly, with data from the proper server. However, all of the reports with subreports fail with formula errors. If this procedure is not run, they work just fine on either server.
I had to place the assignment of table.LogOnInfo.ConnectionInfo = connectionInfo after the call to ApplyLogOnInfo, as that function did not behave as expected. If I perform the assignment first (or not at all), then calling ApplyLogOnInfo on the outer report's table did NOT affect the values of its ConnectionInfo object, but it DID affect the values of the ConnectionInfo object's of its subreports!
In any event, if anyone could post a code sample of changing database connection information on a report containing subreports, I would appreciate it.
Any help is greatly appreciated and anxiously awaited!Hi Adam,
Code for changing database connection information on a report containing subreports :
private ReportDocument northwindCustomersReport;
private void ConfigureCrystalReports()
northwindCustomersReport = new ReportDocument();
string reportPath = Server.MapPath("NorthwindCustomers.rpt");
northwindCustomersReport.Load(reportPath);
ConnectionInfo connectionInfo = new ConnectionInfo();
connectionInfo.ServerName = "localhost";
connectionInfo.DatabaseName = "Northwind";
connectionInfo.IntegratedSecurity = false;
SetDBLogonForReport(connectionInfo, northwindCustomersReport);
SetDBLogonForSubreports(connectionInfo, northwindCustomersReport);
crystalReportViewer.ReportSource = northwindCustomersReport;
private void Page_Init(object sender, EventArgs e)
ConfigureCrystalReports();
private void SetDBLogonForReport(ConnectionInfo connectionInfo, ReportDocument reportDocument)
Tables tables = reportDocument.Database.Tables;
foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
TableLogOnInfo tableLogonInfo = table.LogOnInfo;
tableLogonInfo.ConnectionInfo = connectionInfo;
table.ApplyLogOnInfo(tableLogonInfo);
private void SetDBLogonForSubreports(ConnectionInfo connectionInfo, ReportDocument reportDocument)
Sections sections = reportDocument.ReportDefinition.Sections;
foreach (Section section in sections)
ReportObjects reportObjects = section.ReportObjects;
foreach (ReportObject reportObject in reportObjects)
if (reportObject.Kind == ReportObjectKind.SubreportObject)
SubreportObject subreportObject = (SubreportObject)reportObject;
ReportDocument subReportDocument = subreportObject.OpenSubreport(subreportObject.SubreportName);
SetDBLogonForReport(connectionInfo, subReportDocument);
Hope this helps!!
Regards,
Shweta -
Changing database server IP address
hi,
is it possible to change the IP address of the server (the server name will not be changed) which has a 9.2.0.4 database installed on it?
what do i need to do to ensure that users would be able to connect to the database?
thanks
santosh sewlaltwo file
tnsname.ora
and listner.ora
if you are using ip address in these file
then change the ip address with new one
if u r using server name then no need to change anything
and enjoy your life:-)
kuljeet pal singh -
Hi experts...
I have a critical problem.
Our production database time i.e sysdate is showing time 1 hour ahead of the server time. How can I correct this?
Is DB restart is the only solution or any other alternative is available?
If so, will it affect my DB retoration activity if any disaster occurs?
Please suggest .....
Message was edited by:
chotudbait has been known for people to write a utility that sets fixed_date and then automatically move it forward in real-time.
issuing "alter system set fixed_date = NONE" should clear fixed_date depending on how resilient their utility is (if indeed this is a fixed_date problem) but I wouldn't run that command until you've thought through the consequences.
your bigger concern as this is a production database is when to resolve this issue, if you do it during office hours then you are going to have a combination of timestamp entries in your datababase and this will make it hard to identify the incorrect ones.
If you leave it until out of office hours then you should be able to alter all timestamp columns back an hour (for today), but any output (reports, letters etc) produced during office hours will have datetime entries an hour out.
If it's a 24/7 system then you've got a lot more thinking to do.
Good luck, and I'd be interested to know what it was and how you fixed it -
SSRS 2012, SQL Server 2012. Problem with changing database
Hi all!
I have a problem with changing database for SSRS.
I have a SSRS 2012 and SQL Server 2012. These programs is on WIndows Server 2012.
I need to link SSRS to the new database instance. For this I run SSRS Configeration Manager, open tab Database, click Change Database. Then I choose option "Choose an existing report server database", click Next, write the server name, test
connection (it's successed) and push Next again. Then I see this error message:
Error
The feature: "Using other editions of SQL Server for report data sources and/or the report server database" is not supported in this edition of Reporting Services.
OK
I'm confused, cause I have compatible versions of programs and THIS error.
Please, help me.
Thanks.Hi Kirill,
From the error message, we can know that the issue may be caused by incorrect editions of SQL Server for report data sources are used as the Report Server Database.
When creating a report server database, please be aware that not all editions of SQL Server can be used to host the database. So we should make sure that we have used the correct database as the
Report Server Database. For more details, please refer to the “Report Server Database Server Edition Requirements” section in the following document:
http://technet.microsoft.com/en-us/library/cc645993.aspx
Hope this helps.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Time Series Line will shown Obiee server time while only one value on chart
2012/7/3 :
I mean if in the chart there is only one point ,then this point will be on the vertical axis and the date of this point will be the original point even the date you selected if before this date ,
at this situation in the original point there will show current time on obiee server, does this is a bug?
2012/6/28:
In the time series line , if there only one point have value and no line displaying, then the chart will show the obiee server time when the query is executed like "02:10:00 AM" it will shown on the ordinate origin .
Can this time be remove from the chart or it is a bug?
Edited by: Yu Yang on 2012-7-2 下午7:58Hi Yang,
Yes looks like a bug, I could not find any way to hide server time.
Regards,
Dpka -
Project Server 2003 Change database and connection information
I am working on Project Server 2003. I want to connect the running server to a different project server database and change database account information. How best to do it.
Hello,
You can do this with the edit site tool. See the following Kb for full details:
http://support.microsoft.com/kb/905386
Paul
Paul Mather | Twitter |
http://pwmather.wordpress.com | CPS -
Any issues if database server time get's sync?
Hello,
Just want to ask whether knows of any issues with regards to server stability, server backup and restore or server security if the database server's time gets sync/set back to a prior time once in a while.
thanks,
ZhenUnless you make use of flashback queries, I don't see any obvious problems.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
Registering Values in Audit Database as per server time
Hello Experts,
We have a requirement for values in Business Objects auditing database being entered or registered as per Server time(CDT) and not GMT.
I understand by default its registered as per GMT time,so whatever entries are made, are converted to GMT time first and then entered in audit database.I want the entries to be made as per CDT without converting to GMT. Please let me know if this is possible or a workaround is available for the same.
Thanks and regards,
AbhishekFirst go through this KBA:
1736216 - Audit Reports based off of Activity Universe show incorrect data due to audit database storing dates in GMT time zone
Then if required go through these:
1338736 - Time Zone Issue with universe using Audit database tables.
1359599 - MySql Convert UTC GMT to PST -
How to deal with deadlock on wwv_flow_data table when http server times out
There are some threads about a deadlock on the wwv_flow_data table. None of them contain a real explanation for this behaviour. In my case I will try to explain what I think is happening. Maybe it helps somebody who is hitting the same matter.
In my case with APEX 3.2.1 I am navigating from one page to another. Doing this APEX will lock the table wwv_flow_data. As soon as the other page is shown the lock will be released. But now this other page contains a bad performing query (standaard report region). After 5 minutes the http server (modplsql) will time out and present the message "No response from the application server" on the screen. In the meanwhile the query is still running on the database server and the lock stays on the wwv_flow_data table.
Normal user behaviour will be that the user will use the back button to return to the previous page and tries it again to navigate to the other page or
the user will try to refresh the page with the bad performing query.
And voila now you will have a deadlock on the wwv_flow_data table since a second session is trying to do the same thing while the first hasn't finished yet.
How to deal with it?
First of all. Have a good look at the bad performing query. Maybe you can improve it that it will succeed before the http server will timeout.
In my case the 11gr1 optimizer couldn't handle a subquery factoring clause in the best way. After changing it back to a classical inline query the problem was solved.
Secondly you could increase the timeout parameter of the http server. Although this not the best way.
Maybe it would better if APEX in a next version would release the lock on the table wwv_flow_date earlier or do a rollback just before the moment that the http server is timing out.
regards,
Mathieu MeeuwissenHello Shmoove,
I saw your reply here and you probably understand the problems the HTTP 100 response may cause.
I am trying to send image that was taken by getSnapshot. The problem is that the server respond with this HTTP 100 message.
I suspect that the reason that my server doesn't recognize the file that I'm sending from J2me is that the "server to client" response to the 100 message comes after the second message of (see what the TCPIP viewer shows down here):
POST /up01/up02.aspx HTTP/1.1
Content-Type: multipart/form-data; boundary=xxxxyyyyzzz
Connection: Keep-Alive
Content-length: 6294
User-Agent: UNTRUSTED/1.0
Host: szekely.dnsalias.com:80
Transfer-Encoding: chunked
400: Client to Server (126 bytes)
78
--xxxxyyyyzzz
Content-Disposition: form-data; name="pic"; filename="david.jpg"
Content-Type: application/octet-stream
400: Connected to Server
400: Server to Client (112 bytes)
HTTP/1.1 100 Continue
Server: Microsoft-IIS/5.1
Date: Wed, 23 Mar 2005 00:47:02 GMT
X-Powered-By: ASP.NET
Any help will be appreciated,
David -
Issue with changing database location at runtime
I am having a similar issue to:
Re: Issue with changing database location at runtime
where I am using Crystal Reports 2008 SP 3 fix pack 3.3 and a OLE DB connection to a SQL 2008 R2 server. Running on a computer on the network where the report can see the original development server is fast, other computers where that server is not available are hanging 20 seconds before coming up.
I am using the same code from the Crystal Sample app to change the connection on each table. I found that the slowness comes the first time the ReportDocument object is accessed to get the collection of database tables, before the connection info is set.
Fix pack 3.4 was mentioned in that post. Does fix pack 3.4 fix that issue? I don't see fix pack 3.4 on the downloads page (https://websmp130.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/spn/bobj_download/main.htm)I just found on the reports that were having the issue there was a SQL Expression. Per this thread:
Re: Report load is slow after changing database servers
There was an issue with that and the fix is not out til the end of Feb so I found a way not to use the SQL Expression and the speed is much better.
However, your information provided led me to this post:
Cannot Change Table Location, but Only for One Report
And I am also experiencing an issue where the table location is not changing on one subreport and I will look into that as a possible solution.
Thanks so much for your help. -
How change database from mode MTS (Shared) to mode Dedicated?
How change database (Oracle 8.1.7) from mode MTS (Shared) to mode Dedicated?
Did you try it ? Look at this :
TEST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = test)
(SERVER=SHARED)
SQL> show parameter mts
NAME TYPE VALUE
mts_circuits integer 170
mts_dispatchers string (protocol=tcp)(dispatchers=2)(
connections=500)
mts_listener_address string
mts_max_dispatchers integer 5
mts_max_servers integer 20
mts_multiple_listeners boolean FALSE
mts_servers integer 2
mts_service string test
mts_sessions integer 165
SQL> conn scott/tiger@test
Connected.
SQL> conn / as sysdba
Connected.
SQL> alter system set mts_dispatchers='(protocol=tcp)(dispatchers=0)(connections=0)'
SQL> /
System altered.
SQL> alter system set mts_servers=0;
System altered.
SQL> conn scott/tiger@test
ERROR:
ORA-12520: TNS:listener could not find available handler for requested type of
server
Warning: You are no longer connected to ORACLE.
SQL> However, as I said in my previous posting, you should modify initSID.ora too. If not, next time you'll restart your DB, it will run in shared mode again.
Maybe you are looking for
-
Any hope to upgrade iMac Tiger 10.4.11 to Leopard or Snow Leopard?
I have this old hand-me-down iMac. Here are the specs: Mac OS X version 10.4.11 2GHz Intel Core Duo 1.5GB 667MHz DDR2 SDRAM Mac HD Starup Disk. Is there any way to upgrade this? Maybe a step-by-step guide? I'm a Mac newbie so, explain like I'm five,
-
I am still learning how to use my mac and I have put my mail apps into the trash! but when I went back to my mac I forgot about the mail icon and empted my trash ! can I get it back? if so can you tell me how ? thanks
-
MAP - Label - Oracle Apex 4.0 -
Hi everybody, I have some some questions about maps of Oracle Apex 4.0. I need to put many labels in my sql query, is it possible ? I know that the standard syntax is : select LINK, LABEL, VALUE .... But could we use two or three labels ? and how ? p
-
Multiple key strokes in editable JComboBox for sorting
I want to sort values of JComboBox based on key strokes in the combo. By default, JComboBox traps only one character "public int selectionForKey(char aKey,ComboBoxModel aModel)". I want to have this behaviour based on multiple character typed, e.g. C
-
This Topic has been Moved for correct placement