Database not working / unable to login
Hi All,
I am getting below the error.Would you help for this?
Unable to connect to database
alert log contains,
===========================
Thread 1 cannot allocate new log, sequence 1193
Checkpoint not complete
===========================
DB version : 10.2.0.4
There is space in archive mount point
unable to login with sys as sysdba --> insufficient previledge
<DB>lgwr1016108.trc file contains,
=======================
Maximum redo generation change vector size = 98708 bytes
tkcrrsarc: (WARN) Failed to find ARCH for message (message:0x10)
tkcrrpa: (WARN) Failed initial attempt to send ARCH message (message:0x10)
Warning: log write time 800ms, size 137KB
*** 2012-03-11 00:57:16.469
Warning: log write time 690ms, size 1KB
*** 2012-03-11 23:33:39.429
Warning: log write time 510ms, size 0KB
*** 2012-03-12 11:45:07.539
Warning: log write time 630ms, size 1024KB
*** 2012-03-12 11:56:43.847
Warning: log write time 920ms, size 1026KB
*** 2012-03-12 11:56:45.255
Warning: log write time 860ms, size 1024KB
*** 2012-03-12 11:57:17.752
Warning: log write time 2320ms, size 62KB
===========================
Thanks,
GS
gs wrote:
Hi All,
I am getting below the error.Would you help for this?
Unable to connect to database
alert log contains,
===========================
Thread 1 cannot allocate new log, sequence 1193
Checkpoint not complete
===========================
DB version : 10.2.0.4
There is space in archive mount point
unable to login with sys as sysdba --> insufficient previledge
<DB>lgwr1016108.trc file contains,
=======================
Maximum redo generation change vector size = 98708 bytes
tkcrrsarc: (WARN) Failed to find ARCH for message (message:0x10)
tkcrrpa: (WARN) Failed initial attempt to send ARCH message (message:0x10)
Warning: log write time 800ms, size 137KB
*** 2012-03-11 00:57:16.469
Warning: log write time 690ms, size 1KB
*** 2012-03-11 23:33:39.429
Warning: log write time 510ms, size 0KB
*** 2012-03-12 11:45:07.539
Warning: log write time 630ms, size 1024KB
*** 2012-03-12 11:56:43.847
Warning: log write time 920ms, size 1026KB
*** 2012-03-12 11:56:45.255
Warning: log write time 860ms, size 1024KB
*** 2012-03-12 11:57:17.752
Warning: log write time 2320ms, size 62KB
===========================
Thanks,
GSIt seems, the location which you have specified for archive log is full.
use following to know space if unix
df -hSo you should move archive file to other location as soon as possible, so that arch process which i hung can proceed.
In order to remove archive file, take RMAN backup and then delete
RMAN>backup archivelog all delete input;
Similar Messages
-
Hello,
I am having a 10g release 1 database on my HP UX server.
The problem with this database is it's listener is working emagent is working fine.
But I am trying to login with system password then it shows me error like
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
HP-UX Error: 2: No such file or directoryModerator Comment:
The O.P. had already asked this question in the Solaris 10 forum.
Database not working
I had already moved it to the Database forum.
Then after the comments in this thread, they've re-posted it yet again into the Database forum.
Not able to connect / as sysdba
and spammed it to the Oracle Linux forum:
Not able to connect / as sysdba
Handle: user8856758
Status Level: Newbie
Registered: Jun 22, 2011
Total Posts: 6
Total Questions: 4 (3 unresolved)@ user8856758 ,
You've been here long enough to know better, so we can only assume you are just being inconsiderate or rude with all your crossposts.
They're all locked. -
Zsh completion can not work after re-login
I follow http://www.linux-mag.com/id/1106/
my .zshrc
autoload -U compinit
compinit
zstyle ':completion:*' verbose yes
zstyle ':completion:*:descriptions' format '%B%d%b'
zstyle ':completion:*:messages' format '%d'
zstyle ':completion:*:warnings' format 'No matches for: %d'
zstyle ':completion:*' group-name
if [ -d ~/zshfunc ] ; then
r() {
local f
f=(~/zshfunc/*(.))
unfunction $f:t 2> /dev/null
autoload -U $f:t
fpath=(~/zshfunc $fpath)
autoload -U ~/zshfunc/*(:t)
fi
There is a ~/zshfunc/_fossil script, but it can not work after re-login.
The temp workaround is re-type 'compinit' manually.
fossil <tab> # will use file name as completion
compinit
fossil <tab> # will show commands for fossil
Last edited by dlin (2014-11-10 00:47:14)Hi
Thanks for the tip. However, I elected not to save the XP SP2 uninstall files when I installed SP2. so I appear to be stuffed.
There must be some creative drivers that work with an audigy with XP SP2 installed!
If not then its either re-format the Hard Dri've and re-install everything again (Doh!!) or get another (not Creative Labs) soundcard.
this is really bugging me.
Zonker -
5.0 database not working in lookout 6.6
5.0 database not working in lookout 6.0. I converted the database using the lks file and then saved it. that all worked fine but my modbus stats are in 100% error connected with direct serial! any known fixes? help please!
Is this MODBUS or the database?
To use the 5.0 Databaes you need to use the NI MAX utility to convert a citadel 4 to Citadel 5 database.
Forshock - Consult.Develop.Solve. -
Volume button not working on my iPad. Have tried reset but still no joy. Also have checked that the mute function.
I have the same issue and I don't have a place to enter a user name. So how did you change your user name? This problem is only on my iPad it did not follow my iPhone. It happened right after updating to IOS 7.1.1 and now I can't use Facebook for anything on my iPad. I have not changed my login on Facebook. Very frustrated.
-
Default Dashboard not working after user login
Hi All,
We have one issue in 11.1.1.7.1 where PORTALPATH is not working for users. As a result, user lands on home page/recent page instead of the default dashboard after login.
I followed Doc ID 1576576.1 and Bug 17071629 - PORTALPATH SESSION VARIABLE IS INEFFECTIVE is reported. I applied patch 17071629 on top of 7.1. I have tried and verified that
· The URL we are using to login is “http://machinename:9704/analytics/saw.dll?bieehome&startPage=1”
· There is no Start Page set in user’s My Account other than Default.
· In Answers, the PORTALPATH session variable fetches correct dashboard path.
· I removed space in the dashboard name and tried with following path “/shared/Dashboard/_portal/PortalPathTest”. Also, assigned same default value to the session variable. I also tried “/Shared Folders/Dashboard/Dashboards/PortalPathTest” and “%2fshared%2fDashboard%2f_portal%2fPortalPathTest” but nothing works.
· lsinventory shows the patch got applied successfully.
One thing to notice -
1. Login url is: "http://machinename:9704/analytics/saw.dll?bieehome&startPage=1"
2. After login, browser URL gets changed to "http://http://scoreboard-sit.wellsfargo.com:9704/analytics/saw.dll?bieehomemachinename:9704/analytics/saw.dll?bieehome" and shows Home Page instead of default dashboard.
3. Now at this stage, if I append "&startPage=1" to the above step 2 URL in browser, it automatically navigates to correct default dashboard.
Also, This patch has fixed default dashboard in Act As. That means, If I act as a User, I land on correct default dashboard. But if same user actually logs in, s/he lands on home page.
I suspect if URL redirection after login is the actual issue. Please suggest if anyone has an idea.
Thanks,
AkshatI think this was the issue -
There was a java script error related to an undefined object, "accessMode" in logon.js. This is related to Accessibility or Section 508 (checked by Developer Tools of IE). We may have removed this code from the logon page which was causing the error. We had customized the page quite a bit previously. When I ignore the error and step through, I go to the correct portal path page. So we are going to replace the logon.js file with backup and hopefully it will fix the issue.
Cheers!
Akshat -
Callbacks does not work in custom login module
Hi,
We are upgrading portal from 7.01 to 7.31. I am working on custom login module.
I am using NameCallBack, PasswordCallback and httpcallback (prior to upgrade used webCallback which is deprecated in 7.31)
All these three callbacks works fine in our sandbox which uses Portal Database as UME, But same code fails and returns NULL for callbacks in Dev system where we use Active Directory.
//In initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options)
super.initialize(subject, callbackHandler, sharedState, options);
this.callbackHandler = callbackHandler;
// in logion()
NameCallback nameCallback = new NameCallback("User name: ");
PasswordCallback passwordCallback = new PasswordCallback("Password: ", true);
try
callbackHandler.handle(new Callback[] { nameCallback, passwordCallback });
Any ideas will be appreciated.
Thanks,
DileepShould be fixed in 4.5. Set mouseEnabled=true on the Panel
-
Database not working when network is offline
I have installed Oracle 11gExpressEdition in my office laptop. It works fine if my laptop is connected with my office network and its not working outside office network. I am trying for long time to resolve this issue but couldn't able to find success.
I tried with changing Pcname in "C:\oraclexe\app\oracle\product\11.2.0\server\network\ADMIN\listener.ora" AND "tnsnames.ora" TO "localhost" and "127.0.0.1".
Installed Windown loopback adapter and reinstalled application. But nothing works.
Can you please help me
Thanks in Advance..Thanks for your replay,
Add to my question, database instance is running and my application can able to connect to database only issue is the link using for management portal
http://127.0.0.1:8080/apex/f?p=4950
is not working showing "Cannot display the webpage".
Here is my listner.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = XE)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
DEFAULT_SERVICE_LISTENER = (XE)
And tnsnames.ora
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO) -
Hi I have created one standby DB for Oracle 10.1.0.2.0 on same server for the primary Db.As per Oracle docs I have configured everything but when I do logswitch on primary DB and then check the standby DB as...
SELECT SEQUENCE#, FIRST_TIME, NEXT_TIME
FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#;
it shows no records, that means it is not working.
I have created standby redolog file in the primary DB , as I am using LGWR ASYN mode of redo transform but when I do..
SQL> SELECT GROUP#,THREAD#,SEQUENCE#,ARCHIVED,STATUS FROM V$STANDBY_LOG;
GROUP# THREAD# SEQUENCE# ARC STATUS
4 2 0 YES UNASSIGNED
it show the status unaccessed.
please help me to sort out this problem....
RegardsHi
Thanks to all. Yes I checked the alert logs for both DB, there was some problems due to DB_FILE_NAME_CONVERT ini parameter setting. after I fixed that, I am getting this error in lgwr.trc file
Dump file c:\oracle\product\10.1.0\admin\orcl\bdump\orcl_lgwr_1368.trc
Tue Mar 11 15:39:17 2008
ORACLE V10.1.0.2.0 - Production vsnsta=0
vsnsql=13 vsnxtr=3
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
Windows XP Version V5.1 Service Pack 2
CPU : 1 - type 586
Process Affinity: 0x00000000
Memory (A/P) : PH:14M/255M, PG:123M/909M, VA:1749M/2047M
Instance name: orcl
Redo thread mounted by this instance: 1
Oracle process number: 5
Windows thread id: 1368, image: ORACLE.EXE (LGWR)
*** SERVICE NAME:() 2008-03-11 15:39:17.008
*** SESSION ID:(167.1) 2008-03-11 15:39:17.008
LGWR: Archivelog for thread 1 sequence 42 will NOT be compressed
*** 2008-03-11 15:39:17.227 47100 kcrr.c
Making upidhs request to NetServer -1 (ocis 0x05FCE6E0)
ERROR: kcrrnsupidhs nsidx=-1
*** 2008-03-11 15:39:17.258 45203 kcrr.c
Initializing NetServer for dest=stby
Initializing PGA storage for Netserver communication
Allocating a brand new NetServer
Allocated NetServer 0
NetServer 0 has been started.
Subscribing to KSR Channel 0
success!
Indicating recv buffer for KSR Channel 0
success
Waiting for Netserver 0 to initialize itself
*** 2008-03-11 15:39:20.415 45488 kcrr.c
Netserver 0 has been initialized
LGWR performing a channel reset to ignore previous responses
LGWR connecting as publisher to KSR Channel 0
LGWR-NS 0 initialized for destination=stby
*** 2008-03-11 15:39:20.415 45982 kcrr.c
Making upiahm request to NetServer 0
Waiting for NetServer 0 to respond to upiahm
*** 2008-03-11 15:39:24.274 47100 kcrr.c
Making upidhs request to NetServer 0 (ocis 0x05FCE6E0)
NetServer pid:2916
*** 2008-03-11 15:39:24.274 47331 kcrr.c
upidhs done status 1031
*** 2008-03-11 15:39:24.274 46176 kcrr.c
upiahm connect done status is 1031
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'stby'
*** 2008-03-11 15:39:24.274 47100 kcrr.c
Making upidhs request to NetServer -1 (ocis 0x05FCE6E0)
ERROR: kcrrnsupidhs nsidx=-1
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'stby'
ORA-01031: insufficient privileges
*** 2008-03-11 15:39:24.336 52124 kcrr.c
LGWR: Error 1031 creating archivelog file 'stby'
*** 2008-03-11 15:39:24.383 50571 kcrr.c
kcrrfail: dest:2 err:1031 force:0 blast:1
*** 2008-03-11 15:39:37.680
Old character set id was US7ASCII
*** 2008-03-11 15:39:38.055
New character set id is WE8MSWIN1252
now how to give privilege to the service 'stby'.
please give me some guidance.
regards -
I'm setting up a new Exchange 2013 org. Everything is pretty fresh, only a few mailboxes have been added for testing.
I've added this permission, to provide full access to all the mailboxes in the database:
Get-MailboxDatabase -identity “Mailbox Database” | Add-ADPermission -user netadmin -AccessRights GenericAll -ExtendedRights Receive-As, Send-As
I've verified the permission in ADSI Edit.
I have verified the permission in the recipient's mailbox delegation properties.
However, while logged into OWA using the admin account, if I try to open another user's mailbox from OWA, I just get a sad face that says "Something went wrong :( " .
Any ideas? I've tried resetting the owa virtual directory...reset IIS, rebooted several times, no luck.
ThanksHi
Is that ok when you set to single mailbox?
If ok, please try
Get-Mailbox -database “Mailbox Database” | Add-ADPermission -user netadmin -AccessRights GenericAll -ExtendedRights Receive-As, Send-As
Cheers
Zi Feng
TechNet Community Support
Please see the original post, I've already tried "Get-MailboxDatabase -identity “Mailbox Database” | Add-ADPermission
-user netadmin -AccessRights GenericAll -ExtendedRights Receive-As, Send-As"
If I add the permission individually through ECP, it works just fine. What I'm trying to accomplish is full mailbox access to all mailboxes in the database now and in the future
(something that works just fine in Exchange 2010,) however in 2013 it is not working. I tried doing it via a security group instead, same result. -
Multiple Image Upload with save to database not working in IE anymore
Since updating IE to SP3 ADDT Multiple Image Upload with save to database does not work anymore in IE. It will show a regular file upload field, an does not allow selection of multiple files. It does work in Firefox, but not all my clients use firefox.
PSE Advice.I would consider buying some pluggins from dmxzone.com. They
may cost a
bit upfront but in the long run, you've probably be saving a
lot of
headaches.
http://www.dmxzone.com/
If time's an issue, with these plugins, you could probably
be up and
running in a half hour. George has some really nice pluggins
for
Dreamweaver and well worth the money.
Peter Raun wrote:
>
I am going crazy here
> I will see if i can explain my problem here. . .
> I am trying to use the multiple image upload with save
to database function in
> the developer toolbox, and it work just fine, it lets me
select where to store
> the filename in database and where i want to save the
actual image on the
> server. It is wery easy to use if you just want these
functions.
> But i would also like to give every image a gallery id
in the database, so i
> can sort them out afterwards, its not whery smart to
upload a lot of images to
> a folder, and in the database you just have an image id
and an filename, i cant
> sort them into galleries with these to collums. . . . So
i guess i have to do
> something with the "additional fields" when i am
creating the server behavior
> but i cant figure out what to do?? i would have liked if
i could have made an
> list/menu with all of the availible galleries, and chose
the one that i whould
> add images too and then that gallery id whould be added
to those images in the
> database.
> I have also tried to pass on an url parameter and then
use that as a default
> value in the "additionel field" section but without any
luck at all. . . I hope
> someone here has an idea, that could help me out. . .
> It is sooooo easy to do this, when you are uploading ONE
image at a time, i
> cant figure out why it has to be sooooo hard when using
"multiple image
> upload"
> -
Help needed "tabEnabling" not working in simple login page - Flex
Hello Friends,
I need a small help in Flex. I am doing a simple login page application in FlashBuilder 4.0 & i have kept 2 input boxes like Login,Password and a submit buttion. On clicking the button i am calling a method, so far everything is working fine.... But some how tabenabling is not working. suppose if you are in login inputbox and i press "tab key" it has to go to password input box.. but its not working. can any one help me on this, why it is not working. i have tried all the attempts using tabEnabled = "true". but stil i am failing to do this.
your help would be appreciated.
Rajesh
Message was edited by: Rajeshb_Flash<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"
width="100%"
height="100%"
verticalAlign="middle"
horizontalAlign="center">
<mx:Script>
<![CDATA[
import com.tel.model.EventConstants;
import mx.controls.Alert;
import mx.managers.CursorManager;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import mx.rpc.http.mxml.HTTPService;
private var httpService:HTTPService;
public var userID:String = "";
public function init():void{
private function mouseClickSubmit():void{
if(userName.text != "" && password.text != ""){
userID = userName.text;
initService();
}else{
if(userName.text == ""){
Alert.show("Please enter 'User Name'.","Alert!")
}else if(password.text == ""){
Alert.show("Please enter 'Password'.","Alert!")
private function initService():void{
var params:Object = new Object();
params["userName"] = userName.text;
params["password"] = password.text;
httpService = new HTTPService();
httpService.showBusyCursor = true;
httpService.resultFormat = "xml";
httpService.method=URLRequestMethod.POST;
httpService.addEventListener(ResultEvent.RESULT, httpServiceResultHandler);
httpService.addEventListener(FaultEvent.FAULT, httpServiceFaultHandler);
httpService.url = "Login.action";
httpService.send(params);
private var boolFirstRun = true;
private function httpServiceResultHandler(event:ResultEvent):void{
httpService.removeEventListener(ResultEvent.RESULT, httpServiceResultHandler);
httpService.removeEventListener(FaultEvent.FAULT, httpServiceFaultHandler);
httpService = null;
var resultXML:XML = new XML(event.result.toString());
if(resultXML.children().toString() == "true"){
boolFirstRun = false;
dispatchEvent(new Event(EventConstants.LOGIN_SUCCESS))
}else{
userName.text = "";
password.text = "";
Alert.show("Login Failed! Invalid 'User Name' or 'Password'.","Alert")
private function httpServiceFaultHandler(event:FaultEvent):void{
httpService.removeEventListener(ResultEvent.RESULT, httpServiceResultHandler);
httpService.removeEventListener(FaultEvent.FAULT, httpServiceFaultHandler);
httpService = null;
]]>
</mx:Script>
<mx:Panel title="Login Page" width="400" height="300" styleName="loginPanel" verticalAlign="middle" horizontalAlign="center" backgroundImage="assets/images/hello.jpg" backgroundAlpha=".1">
<mx:VBox width="260" height="95" styleName="loginBox" backgroundAlpha=".2">
<mx:HBox width="100%">
<mx:Label width="85" text="User Name" styleName="loginTextStyle"/>
<mx:TextInput width="150" id="userName"/>
</mx:HBox>
<mx:HBox width="100%">
<mx:Label width="85" text="Password" styleName="loginTextStyle"/>
<mx:TextInput width="150" id="password" displayAsPassword="true"/>
</mx:HBox>
<mx:HBox width="100%">
<mx:Spacer width="80%"/>
<mx:Button label="Enter" id="submit" click="mouseClickSubmit()"/>
</mx:HBox>
</mx:VBox>
</mx:Panel>
</mx:VBox> -
DB13 Check database not working
Hi All,
Check DB and update stats from DB13 does not work. It comes back with the following error
Can't exec external program (No such file or directory)
Checked from OS level and found that brconnect -u / -c -f check works only from exe directory. If i execute the
command from any other directory it comes back with an error saying command not found
Upon further investigation found that this is an issue with env variable PATH
The current value of PATH in env variable of sidadm is
PATH=/oracle/SID/102_64/bin:/opt/IBMJava2-amd64-142/bin:.:/export/home/sidadm:/usr/sap/SID/DVEBMGS01/exe:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin
I want to change the value from usr/sap/SID/DVEBMGS01/exe to /usr/sap/SID/SYS/exe/run
I checked all the csh and .sh profiles for sidadm user but i did not find any PATH variable,
I can see DIR_LIBRARY and LD_LIBRARY_PATH but i cant see PATH variable
Checked the shell and it is /bin/csh
checked .bash_profile and all i can see is this
.bash_profile
Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
unset USERNAME
Has any one faced this issue earlier??
Meanwhile i have found a temporary fix for timebeing i.e i copied all the br* executables from /sapmnt/SID/exe to
/usr/sap/SID/DVEBMGS01/exe and after doing that DB13 - DBcheck and Update optimizer works fine.
Regards,
Ershad AhmedHi Sunil and Eric
Thanks for the reply
I checked all the profiles but no luck. I cant find the parameter.
As i mentioned in my earlier post i have found a temporary fix by copying the br executables from /sapmnt/SID/exe to
/usr/sap/SID/DVEBMGS01/exe and ran saproot.sh and that resolved the issue.
If i can change my PATH variable to point to /usr/sap/SID/SYS/exe/run that would be a permanent fix
Regards,
Ershad Ahmed -
Sql server 2012 Logon trigger not working for certain logins
Hello. I created a login trigger to insert data for each login in a table, and it works for all logins except one that is format domain\login
and the login ends with the dollar sign(actual name is domain\CTXDEVDCSI1$).
I had been using varchar, but after reading other forum posts, I changed the varchar's to nvarchar's, but it still fails for that id.
The errors written to the sql server error log were the usual "login failed due to trigger execution".
I had granted insert on the rvvlogindata table in dsa to public, and only one id wasn't able to login after that.
Any suggestions would be much appreciated!
Here's the modified table ddl:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[rvvlogindata](
[sessionId] [int] NULL,
[LoginTime] [datetime] NULL,
[HostName] [nvarchar](50) NULL,
[ProgramName] [nvarchar](300) NULL,
[LoginName] [nvarchar](50) NULL,
[ClientHost] [nvarchar](50) NULL
) ON [PRIMARY]
GO
Here's the logon trigger code:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
create trigger [LOGIN_IP_RESTRICTION] on all server for logon
as
Begin
Declare @LogonTriggerData xml,
@EventTime datetime,
@LoginName nvarchar(50),
@ClientHost nvarchar(50),
@HostName nvarchar(50),
@AppName nvarchar(300)
Set @LogonTriggerData = eventdata()
set @EventTime = @LogonTriggerData.value('(/EVENT_INSTANCE/PostTime)[1]', 'datetime')
set @LoginName = @LogonTriggerData.value('(/EVENT_INSTANCE/LoginName)[1]', 'varchar(50)')
set @ClientHost = @LogonTriggerData.value('(/EVENT_INSTANCE/ClientHost)[1]', 'varchar(50)')
set @HostName = HOST_NAME()
set @AppName = APP_NAME()
insert into dsa.dbo.rvvlogindata
sessionId,
LoginTime,
HostName,
ProgramName,
LoginName,
ClientHost
select @@spid,
@EventTime,
convert(nvarchar(50),@HostName),
convert(nvarchar(300),@AppName),
convert(nvarchar(50),@LoginName),
convert(nvarchar(50),@ClientHost)
END
GO
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
ENABLE TRIGGER [LOGIN_IP_RESTRICTION] ON ALL SERVER
GOErland, I wanted to add more info to my reply earlier today.
sp_who2 showed no blocking, activity monitor from my local PC SSMS showed no major waits or high i/o or cpu activity.
I was wondering if you have any suggestions on how to find out what was the cause of the 5+ minute wait for SSMS on the remote desktop to respond and fully come up.
I definitely can't put this in production with this hanging delay possibly occurring there.
I was connecting as read_user when it hung.
sp_who2 output at the time was:
1 BACKGROUND sa . . NULL LOG WRITER 54631 0 04/10
06:59:43
1 0
2 BACKGROUND sa . . NULL RECOVERY WRITER 8673 0 04/10 06:59:43
2 0
3 BACKGROUND sa . . NULL LAZY WRITER 300691 0 04/10
06:59:43
3 0
4 BACKGROUND sa . . NULL RESOURCE MONITOR 1207010 0 04/10 06:59:43
4 0
5 BACKGROUND sa . . NULL XE TIMER 38828 0 04/10
06:59:43
5 0
6 BACKGROUND sa . . NULL XE DISPATCHER 1404 0 04/10
06:59:43
6 0
7 BACKGROUND sa . . master SIGNAL HANDLER 0 0 04/10 06:59:43
7 0
8 BACKGROUND sa . . NULL LOCK MONITOR 179978 0 04/10
06:59:43
8 0
9 sleeping sa . . master TASK MANAGER 0 11 04/21
08:37:04
9 0
10 sleeping sa . . master TASK MANAGER 0 0 04/10
06:59:44
10 0
11 BACKGROUND sa . . master TRACE QUEUE TASK 546 0 04/10 06:59:44
11 0
12 BACKGROUND sa . . NULL SYSTEM_HEALTH_MO 4930 0 04/10 06:59:44
12 0
13 BACKGROUND sa . . NULL RECEIVE 422 0 04/10
06:59:45
13 0
14 BACKGROUND sa . . master CHECKPOINT 79137 31811 04/10
06:59:46
14 0
15 BACKGROUND sa . . master TASK MANAGER 1606 0 04/10
06:59:46
15 0
16 BACKGROUND sa . . NULL UNKNOWN TOKEN 0 0 04/10 06:59:46
16 0
17 sleeping sa . . master TASK MANAGER 0 74 04/21
08:37:04
17 0
18 sleeping sa . . master TASK MANAGER 0 0 04/21
08:18:49
18 0
19 sleeping sa . . master TASK MANAGER 0 0 04/21
08:30:29
19 0
20 sleeping sa . . master TASK MANAGER 0 1 04/21
08:37:14
20 0
21 sleeping sa . . master TASK MANAGER 0 7 04/21
08:30:59
21 0
22 sleeping sa . . master TASK MANAGER 16 4 04/21
08:37:44
22 0
23 sleeping sa . . master TASK MANAGER 0 15 04/21
08:39:24
23 0
25 BACKGROUND sa . . master BRKR EVENT HNDLR 0 95 04/10 06:59:48
25 0
30 BACKGROUND sa . . master BRKR TASK 0 0 04/10
06:59:48
30 0
31 BACKGROUND sa . . master BRKR TASK 16926 0 04/10
06:59:48
31 0
32 BACKGROUND sa . . master BRKR TASK 0 0 04/10
06:59:48
32 0
34 BACKGROUND sa . . master BRKR TASK 10701 0 04/10
06:59:48
34 0
51 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
03:16:56
51 0
52 sleeping reports_adm REPORTSDEVSI2 . JBOSS_Cluster_CRServer2011 AWAITING COMMAND 0 0 04/21
08:52:12 jTDS
52 0
53 sleeping NT AUTHORITY\SYSTEM SQLDEV2012 . msdb AWAITING COMMAND 0 0 04/10
06:59:58 SQLAgent - Email Logger 53 0
54 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:51 Citrix:Broker#1 54 0
55 sleeping edit_user ASDEV1 . dsa AWAITING
COMMAND 0 0 04/21 08:55:27 jTDS
55 0
56 sleeping reports_adm REPORTSDEVSI2 . JBOSS_Cluster_CRServer2011 AWAITING COMMAND 0 0 04/21
08:52:12 jTDS
56 0
57 sleeping reports_adm REPORTSDEVSI2 . JBOSS_Cluster_CRServer2011 AWAITING COMMAND 0 0 04/21
08:52:12 jTDS
57 0
58 sleeping reports_adm REPORTSDEVSI2 . JBOSS_Cluster_CRServer2011 AWAITING COMMAND 0 0 04/21
08:52:12 jTDS
58 0
59 sleeping NT AUTHORITY\SYSTEM SQLDEV2012 . msdb AWAITING COMMAND 124 242 04/10
06:59:59 SQLAgent - Generic Refresher 59 0
60 sleeping NT AUTHORITY\SYSTEM SQLDEV2012 . msdb AWAITING COMMAND 2790 1160 04/21
08:55:00 SQLAgent - Job invocation engine 60 0
61 sleeping reports_adm REPORTSDEVSI2 . JBOSS_Cluster_CRServer2011 AWAITING COMMAND 0 0 04/21
08:52:12 jTDS
61 0
62 sleeping reports_adm REPORTSDEVSI2 . JBOSS_Cluster_CRServer2011 AWAITING COMMAND 0 0 04/21
08:52:12 jTDS
62 0
63 sleeping reports_adm REPORTSDEVSI2 . JBOSS_Cluster_CRServer2011 AWAITING COMMAND 0 0 04/21
08:52:12 jTDS
63 0
64 sleeping reports_adm REPORTSDEVSI2 . JBOSS_Cluster_CRServer2011 AWAITING COMMAND 0 0 04/21
08:52:12 jTDS
64 0
65 sleeping reports_adm REPORTSDEVSI2 . JBOSS_Cluster_CRServer2011 AWAITING COMMAND 0 0 04/21
08:52:12 jTDS
65 0
66 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
03:16:56
66 0
67 sleeping reports_adm REPORTSDEVSI2 . JBOSS_Cluster_CRServer2011 AWAITING COMMAND 0 0 04/21
08:52:12 jTDS
67 0
68 sleeping edit_user DCMA10685 . dsa AWAITING COMMAND 0 0 04/21
08:56:47 jTDS
68 0
69 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:49 Citrix:Configuration 69 0
70 sleeping rvanveen DCMA8460 . master AWAITING COMMAND 1794 7120 04/21
08:51:37 Microsoft SQL Server Management Studio 70 0
71 sleeping xsp_user XSPDEVSI2 . xspv5 AWAITING COMMAND 0 0 04/21
08:58:52 .Net SqlClient Data Provider 71 0
72 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:56:01 Citrix:Monitor 72 0
73 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:30 Citrix:Monitor 73 0
74 sleeping rvanveen DCMA8460 . master AWAITING COMMAND 16 2 04/21
08:53:37 Microsoft SQL Server Management Studio - Query 74 0
75 sleeping rvanveen DCMA8460 . loginaudit AWAITING COMMAND 0 22 04/21
08:50:29 Microsoft SQL Server Management Studio - Query 75 0
76 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
07:05:07
76 0
77 sleeping adm_jbossportal ASDEV1 . jbossportal AWAITING
COMMAND 0 0 04/21 08:40:27 jTDS
77 0
78 sleeping rvanveen DCMA8460 . master AWAITING COMMAND 110 542 04/21
08:46:17 Microsoft SQL Server Management Studio - Query 78 0
79 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
07:05:56
79 0
80 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:54 Citrix:MachineCreation 80 0
81 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
08:08:29
81 0
82 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
07:02:13
82 0
83 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
07:02:15
83 0
84 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:44 Citrix:Monitor 84 0
85 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
07:11:05
85 0
86 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:53 Citrix:AdIdentity 86 0
87 sleeping DAIWA_USA\admsql SQLDEV2012 . master AWAITING COMMAND 15 2 04/21
08:56:20 Microsoft SQL Server Management Studio - Query 87 0
88 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:36 Citrix:SiteServices 88 0
89 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:42 Citrix:Host 89 0
90 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:47 Citrix:ConfigurationLogging 90 0
91 RUNNABLE rvanveen DCMA8460 . master SELECT INTO
15 51 04/21 08:58:46 Microsoft SQL Server Management Studio - Query 91 0
92 sleeping rvanveen DCMA8460 . master AWAITING COMMAND 63 30 04/21
08:52:34 Microsoft SQL Server Management Studio - Query 92 0
94 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:53 Citrix:DelegatedAdmin 94 0
95 sleeping DAIWA_USA\admsql SQLDEV2012 . loginaudit AWAITING COMMAND 173 27 04/21
08:56:10 Microsoft SQL Server Management Studio 95 0
96 sleeping xsp_user XSPDEVSI2 . xspv5 AWAITING COMMAND 0 0 04/21
08:58:33 .Net SqlClient Data Provider 96 0
97 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
08:10:07
97 0
98 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 31 38 04/21
08:00:31
98 0
99 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
08:10:12
99 0
100 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 282 04/21
08:10:14
100 0
101 sleeping DAIWA_USA\admsql SQLDEV2012 . master AWAITING COMMAND 0 8 04/21
08:56:50 Microsoft SQL Server Management Studio 101 0
102 sleeping DAIWA_USA\admsql SQLDEV2012 . master AWAITING COMMAND 31 0 04/21
08:54:57 Microsoft SQL Server Management Studio 102 0
103 sleeping read_user SQLDEV2012 . master AWAITING COMMAND 0 8 04/21
08:57:09 Microsoft SQL Server Management Studio 103 0
104 sleeping read_user SQLDEV2012 . dsa AWAITING COMMAND 0 0 04/21
08:57:09 Microsoft SQL Server Management Studio 104 0
105 sleeping rvanveen DCMA8460 . tempdb AWAITING COMMAND 8875 336 04/21
08:58:54 Microsoft SQL Server Management Studio 105 0
106 sleeping read_user SQLDEV2012 . master AWAITING COMMAND 16 0 04/21
08:57:39 Microsoft SQL Server Management Studio 106 0
107 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:47 Citrix:EnvTest 107 0
108 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 2200 8514 04/21
08:00:31
108 0
109 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
07:05:56
109 0
110 sleeping rvanveen DCMA8460 . master AWAITING COMMAND 0 0 04/21
08:58:48 Microsoft SQL Server Management Studio 110 0
113 sleeping Citrix_adm CTXDEVSI1 . XenApp6 AWAITING COMMAND 284 777 04/21
08:51:33 Citrix IMA 113 0
119 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:42 Citrix:ConfigurationLoggingData 119 0
120 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:26 Citrix:Storefront 120 0
125 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/16
13:55:16
125 0
126 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 16 0 04/16
11:25:30
126 0
131 sleeping echouliak DCMA10685 . master AWAITING COMMAND 139 8 04/14
15:26:55 Microsoft SQL Server Management Studio 131 0
135 sleeping echouliak DCMA10685 . dsa AWAITING COMMAND 0 0 04/14
15:24:52 Microsoft SQL Server Management Studio - Query 135 0
136 sleeping echouliak DCMA10685 . dsa AWAITING COMMAND 0 0 04/14
15:00:17 Microsoft SQL Server Management Studio - Query 136 0
140 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
07:05:56
140 0
145 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
07:05:56
145 0 -
Cfmail querying database not working
The code below is not working and I am not getting any
errors. Any suggestions.
<cfparam name="notifyDate" default="#DateFormat(Now(),
"short")#">
<CFQUERY name="getNotifications" datasource="AEDWEB">
SELECT u.strEmail,
u.strFirstName,
u.strLastName,
cc.strCCNoteEmailBody
FROM umsUsers u,
ctsConferenceCalls cc
WHERE cc.dtsCCNotificationDate = '#notifyDate#'
AND u.intCCNotify = 1
AND u.intMemberstatus = 1
</CFQUERY>
<CFOUTPUT query="getNotifications">
<CFMAIL TO="#strEmail#" FROM="[email protected]"
SUBJECT="Conference Call Reminder" SERVER="mail.ccicom.com"
port="25">
#strCCNoteEmailBody#
</CFMAIL>
</CFOUTPUT>I just can a query with the WHERE, AND and I get data return.
I also modified the code by taking the cfoutput statement out. I
still get no mail. I also check in CF admin and the mail server is
running. Any other sugguestions please.
<cfparam name="notifyDate" default="#DateFormat(Now(),
"short")#">
<CFQUERY name="getNotifications" datasource="AEDWEB">
SELECT u.strEmail,
u.strFirstName,
u.strLastName,
cc.strCCNoteEmailBody
FROM umsUsers u,
ctsConferenceCalls cc
WHERE cc.dtsCCNotificationDate = '#notifyDate#'
AND u.intCCNotify = 1
AND u.intMemberstatus = 1
</CFQUERY>
<CFMAIL TO="#strEmail#" FROM="[email protected]"
SUBJECT="Conference Call Reminder" SERVER="mail.ccicom.com"
port="25">
#strCCNoteEmailBody#
</CFMAIL>
Maybe you are looking for
-
Goods recipient field at the header level when reservation is created.
Hi Experts, In SRM, when shopping cart is created and a reservation is created in the backend ECC system, the Goods Recipient field is updated only at the item level but not at the header level. That is, when I go to the transaction mb23 and check th
-
Pop up says "URL is not valid and cannot be loaded" Page continues to load normally however.
This pop-up happens on several websites, yet the page continues to load properly and function normally. However, I must keep clearing the alert box for it to do so.
-
Can't print from Adobe Reader X
Whenever I try to print from Adobe Reader I get the message "Adobe Reader has encountered a problem and needs to close." The error signature is: AppName: acrord32.exe AppVer: 10.1.2.45 ModName: acrord32.exe ModVer: 10.1.2.45 Offset: 0005e985 It does
-
How can I send iTunes gift to my brother, living in Sweden?
Hey! I use Polish iTunes, while my brother uses Swedish of course. When I choose the gift option, I can see the following info: Gift redeemable in Polish store only. Does it mean that there is no possiblity for me to send him a gift voucher? Thanks f
-
Query components in HideShow region
Hi, I want to know if it is possible to contain query components such as simple search panel in a hideshow region? I have a page with a advance table and a simple search panel associated with it in a query region. I don't see an obvious way to add hi