Logon trigger not working over DB-Link?
Hi all,
I have a serious question about accessing tables over a database link.
I have three schema:
DATA@SOURCE
INTERFACE@SOURCE
WORK@TARGET
Schema DATA has one table called T1
The INTERFACE schema has select privileges on all tables from DATA. Furthermore schema INTERFACE has a logon trigger to change the "current schema" to DATA:
CREATE OR REPLACE TRIGGER TRG_A_LOGIN_SET_SCHEMA AFTER LOGON
ON INTERFACE.SCHEMA
BEGIN
execute immediate 'ALTER SESSION SET CURRENT_SCHEMA = DATA';
END;
The WORK schema has a database link to the INTERFACE schema called INT_DB_LINK.
I am now logged into schema WORK on the TARGET database and I am executing following statement:
select a from T1@INT_DB_LINK
-> it's working
Next I execute
declare
cursor c is
select a
from T1@INT_DB_LINK
where rownum<2;
begin
for r in c loop
null;
end loop;
end;
This is not working. Error message is ORA-000942: table or view does not exist.
But why?
Can anyone help me?
Thanks in advance
Py
Hi all,
after a long, very long search I found what caused this strange behaviour.
The ORA- Error was not raised by the SQL-Execution-Engine but by the SQL-Parser/SQL-Validation.
As the second statement is an anonymous SQL block the Oracle Parser checks all objects dependencies before execution.
This means a connection is established from TARGET to SOURCE checking if table T1 is available. The strange thing is
that on this connection the "ALTER SESSION" trigger is not fired. So the parser does not find object T1 in schema INTERFACE.
If I create an empty table T1 in INTERFACE the anonymous block gets parsed/validated and the statement is executed. But this
time the block does a normal "connect session" and the trigger is fired. This means the statements accesses the T1 table in
schema DATA. (But T1 in INTERFACE has to be existent that parse/validation works)
I don't know if this is a bug or a feature.
To workaround this I have created private synonyms in schema INTERFACE pointing to the objects in DATA.
Thanks for your help!
Py
regarding the other qestion:
Yes, permissions are granted over a role.
Similar Messages
-
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 -
Merge statement not working over db link
I have a merge statement that works fine when it's run against a local table, but when I try to run it against a table over a database link, I get the following error.
ERROR at line 1:
ORA-01008: not all variables bound
ORA-02063: preceding line from REPOS
ORA-06512: at "DBADMIN.PING_DB", line 6
ORA-06512: at line 1
Here is the code:
create or replace procedure ping_db
as
begin
merge into availability@repos A
using (select trunc(sysdate) from dual)
on (trunc(A.day) = trunc(sysdate))
when matched then update set A.uptime = A.uptime + 1
when not matched then insert (hostname,dbname,day,uptime) values
(utl_inaddr.get_host_name,sys.database_name,trunc(sysdate),1);
commit;
end;
/Code compiles fine, but gets the error when it's executed. Any help would be appreciated.9.2.0.x is the version (9.2.0.4,.5 and .6)
-
Home sharing not work over d-link router (lan - wi-fi)
I have d-link dsl-2640u. It has 4 Ethernet ports and wi-fi AP. My iTunes is installed on pc that connected to d-link through Ethernet. And I have iPad connected to the d-link via wi-fi. So, the library that is shared on my pc, don't showing up in the iPad. But when I unplug LAN cable from pc and then plug the wi-fi adapter in, and connect to d-link wi-fi - all work fine. All devices use 192.168.1.1-10 ip. Can anybody help me? How provide sharing from the ethernet to wi-fi.
I solved the problem! First of all, i installed the latest firmware for the DSL-2640u.
The Next steps include the following:
1. Turned of the firewall in WAN interface
2. Enable "Bridge PPPoE Frames Between WAN and Local Ports" in WAN interface.
3. Enable "Enable WAN Service" & "Enable IGMP Multicast"
4. Advanced Setup->LAN-> Enabled "Enabled IGMP Snooping"
5. Advanced Setup->Interface Group. Group "default" include Wireless(SSID1), LAN1, LAN2, LAN3, LAN4
6. Wireless -> wireless bridge -> Bridge Restrict turned to "disabled"
Last steps (maybe, its not necessary)
1. Advanced Setup->NAT -> Virtual Servers -> ADD TCP/UDP port 3689 & ADD UDP port 5353 for 192.168.1.2
2. Advanced Setup->NAT -> Port Triggering -> ADD TCP port 3689 & ADD UDP port 5353
3. Advanced Setup->NAT -> DMZhost -> ADD 192.168.1.2 (my pc IP-adress) -
I can't play certain games or videos on youtube. Also I can't close my browser window or select items from a drop down menu. Not only did i uninstall firefox and then reinstall but i ran firefox in safe mode and still had the same problem
Try to disable hardware acceleration in Firefox.
*Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
*https://hacks.mozilla.org/2010/09/hardware-acceleration/
*https://support.mozilla.org/kb/how-do-i-upgrade-my-graphics-drivers
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes -
Multi-Row insert/update/delete not working via db-link
App. Version: 2.0.0.00.49
DB: Oracle 9i, not sure about the build
Problem: Multirow Update/Insert/Delete doesn't work via db-link.
Error received: ....ORA-1460: unimplemented or unreasonable conversion requested....
Where: Tabular Form generated via Wizard
Side note: It's working properly when local table(s) is/are used, it's not working via db-link or view.
I've encountered this error with single update/insert/delete operations before, but was able to fix it via using temp-variables (v_xyz := :Px_xyz; as the proposed v('Px_xyz') was really slow with my scripts)...but with the automated DML-action I don't see a way to edit it accordingly.
Workaround found:
1a) Use local* collection on HTML-DB-Server, then write single row updates/deletes/inserts to the remote DB via DB-Link
1b) Use local* table on HTML-DB-Server, then write single row updates/deletes/inserts to the remote DB via DB-Link
* Local = on the same server that HTML-DB is running on...
So,...to my questions:
1. Can someone confirm that this is a "known feature" (aka bug)?
2. Can someone tell me if this "known feature" has been eliminated in the newer version of HTML-DB/APEX (> 2.0.0.00.49)?
Thanks.
IngoHi,
Do you have a small test case program that demonstrates this? A JDeveloper project showing what exactly is the problem when trying to use the BDB SQL JDBC driver to insert data into the BDB SQL database? What do you mean by "not working", do you get any errors, you do not get errors but you do not see the data in the database etc?
What are the versions of Java, JDeveloper, ADF and BDB SQL you are using, and on what OS?
Regards,
Andrei -
Facebook App not working over 3G, but works over Wi-Fi.
I have a BlackBerry® Curve™ 3G 9330 Social Messaging Ready smartphone. My current software version is 6.0 Bundle 2333. My Facebook application worked perfectly fine when I got the phone a few months ago over the Verizon 3G network and Wi-Fi, but when I recently updated Facebook to version 2.0.0.58, it does not work over 3G anymore. But everytime I try to connect via 3G it says "We cannot reach the Facebook server at this time. Please try again later. (100)" It does however still work over Wi-Fi.
I have tried various attempts to fix it: uninstalling the App and re-installing it and also removing the battery and putting it back in (hard reset), but nothing has worked.
Is anyone else have this same issue? Is there a way to restore my Blackberry to its factory settings so that I can just use the older version of the Facebook App [that was previously installed]?
Thank you.Hey metalhourse90,
I can see from your PIN that you currently don't have browsing services included in your data plan. I would advise contacting your wireless provider to have this enabled.
Thanks,
-FS
Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
Be sure to click Kudos! for those who have helped you.
Click Solution? for posts that have solved your issue(s)! -
IMessage is not working over wifi. I need HELP D:
My iMessage is not working over wifi. But it's only at my house. Actually it worked a while ago but then it stopped working.
The browser, email, app store, youtube and any other apps are working just fine over the wifi. It's only my iMessage. It won't send any message. It say message not delivered. Does anybody what is going on and what can I do to fix it? Thanks, before. (:I recently moved my library on my time capsule
You mean you moved your music files to the external. The library is more than the music files.
Just copy the \Music\iTunes\ folder from internal to the Time Capsule.
Add the Time Capsule to your Login items in System prefs -> Accounts.
Hold Option and launch iTunes and select *Choose library*.
Select the iTunes library file int ehiTunes folder on the Time Capsule.
It is hte samae library you have previously. All artwork playlists, ratings, songs, movies, etc. will be there.
Genius is already there so nothing needs to be done. -
BBM not working over mobile network
BBM on Q10 not working over mobile network.
Working only via wifi.
Carrier: KSA STC
OS: Official 10.2.1.2102
Please help.
Its very disappointing that bbm is not working on bb.Can you try sending a BBM friend a PIN message, not in BBM, but in your Compose Message > PIN.
You will need that contact's BBM PIN number...
Do you see the message sent, and does it hae a D beside or R afterwards?
1. If any post helps you please click the below the post(s) that helped you.
2. Please resolve your thread by marking the post "Solution?" which solved it for you!
3. Install free BlackBerry Protect today for backups of contacts and data.
4. Guide to Unlocking your BlackBerry & Unlock Codes
Join our BBM Channels (Beta)
BlackBerry Support Forums Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code -
After Logon on Database Trigger Not Working From Client Terminal
Hi Every One
I Have a Problem, I'am Using Oracle 10g R2, I'd Written After Logon on Database Trigger, I'd Written The Trigger Under The Under The User With DBA Privileges, and it is work Fine, but it is work only when i Logon On The Database from The Server Terminal with any user, and If Logon From any Other Terminal It Is Not Work,
Can any One Know The Reason, Please Help me
Yasser MokhtarPlease post the trigger code.
-
Facebook app links not working over wifi
This might be hard to explain let alone comprehend so bear with me.
As of the last 24 hours or so I am having trouble using Facebook linked apps while on Wifi. To be specifc I was using the app called "Lost Friends?". I have used this app for months, no issues. All of a sudden last night it would not connect to my Facebook account. I went on to try another app called "Lost A Friend", same issue, no connection to Facebook via wifi. After I left my house (back to 3G) I tried it and it worked perfectly, but again, once home it was doing the same thing. While inside my house I turned off Wifi and it worked again. It sounds to me like there is something within wifi, Facebook or both. If anyone has any info it would be greatly appreciated.
To skip a step or two, I went as far as factory resetting my phone, starting as a new iphone and still have the same issue.I'm using a Mac have a Airport express base station. Everything was fine and I could pull up Facebook on my Mac and Androids over my WiFi. Apple pushed a firmware upgrade and the IOS upgrade. Now, voila, Facebook not working on my Mac or on other devices if logged on to my WiFi. If I disconnect WiFi and am on 4G it works fine. The same issues as others have described.
After trying all the fixes listed and a few not listed like clearing my cookies, history, tmp files and cache, I tried a release/renew. Nope. So I logged out of Facebook, uninstalled the apps, shut down computer, phone and tablet. I finally reset my routers by unplugging my comcast router and my basestation, let them all resync, thinking this might have been an issue with a router table (?). At any rate this would reset all the IPs. (I reinstalled the apps) Worked the first time, about 2 hours later it quit working. Tried the same trick but it didn't work again.
I've read a number of blogs and other posts on 'fix it' type sites researching the issue. It sounds like many of the streaming media sources that require lots of resources and will cost more to operate by using the data plans are no longer working on WiFi.
Interesting. -
Safari 8 hover does not work over google map location pins
OS X 10.10.1, Safari 8, Java 8-25
I have always had little odd things not work when using safari on a large % of websites I visit, the latest issues are
no response when hovering over google map location pins, travel site calendars not opening or responding to mouse, drag and drop
show the item being dragged several inches away from the actual pointer, some links don't respond, missing items
or odd layout with print or pop ups going off the screen on some website pages, zooming in and out does not help. I have none
of these issues when using Firefox or Chrome. Been using Safari for 4 years now.Have you tried a PRAM and an SMC reset? They're longshots, but don't take long to try.
PRAM: http://support.apple.com/kb/HT1379
SMC: http://support.apple.com/kb/HT3964
Have you run Apple Diagnostics from the disc(s) that shipped with the computer?
Since the problem occurs in all browsers, it still sounds like a video hardware or video RAM or maybe a software issue having to do with layers and rendering.
The map layers aren't getting rendered, or if rendered, aren't getting displayed.
Do you have any browser add-ins? Pop-up blockers?
Since you have two video chipsets, it's possible that might be related to the issue.
This non-Apple website talks about switching between chipsets on the various MacBook models so equipped, and points to a free 'donationware' program for the menubar that lets you easily switch between chipsets:
http://www.everymac.com/systems/apple/macbook_pro/macbook-pro-unibody-faq/macboo k-pro-unibody-switching-between-graphics-processors.html
Trying to think of other software that might help pinpoint the problem, does the iPhoto Slideshow 'Shatter' template work? Working properly, it 'shatters' images into several color layers and rotates them in and out to build and deconstruct photos. -
Logon trigger setting nls_date_format over ridden by sql developer?
Problem: Developers are inserting a Date record into a varchar field. I can't change this process right now. Non-Date info is stored here also. Would require a code change.
To simplify this, I wanted to get all the developers to insert using the same 'nls_date_format'. I had hoped to be able to centralize this by having Oracle set it in the database. I tried this by setting the database nls_date_format and with a logon trigger.
See test below. Seems to be over ridden.
Test case is with SQL Developer. Noticed the same thing when developers use Websphere. I think we reduce the chance for errors, if I can handle this in the database. However, my nls_date_format settings are getting over ridden.
1. s et database parameter nls_date_format to YYYY-MM-DD HH24:MI:SS , this gets over riden by SQL Developer/Websphere
2. Created a trigger with an 'alter session', but this seems to get over ridden also.
Please see test case below:
Oracle 11.2.0.3
test logging: SQLPLUS locally on the unix server, then log in using SQL Developer which is installed on my laptop.
SQL Developer NLS_DATE_FORMAT : YYYY-MON-DD HH24:MI:SS , This is different for test purposes
I have auditing turned turned on to db,extended with 'audit all by 'user' by access;' for test purposes to get more info.
create table test (username varchar2(30),sid number,mytest varchar2(300),insert_date date);
create or replace
TRIGGER LOGINTRG
AFTER LOGON ON DATABASE
BEGIN
insert into test select user, sys_context('USERENV','SID') ,value,sysdate from v$parameter where name = 'nls_date_format';
EXECUTE IMMEDIATE 'ALTER SESSION SET NLS_DATE_FORMAT=''YYYY-MM-DD HH24:MI:SS''';
insert into test select user, sys_context('USERENV','SID') ,value,sysdate from v$parameter where name = 'nls_date_format';
commit;
END LOGINTRG;
/Results/Questions
1. When I select from 'test', I confirm that my NLS_DATE_FORMAT is the same both before and after the alter session.
2. select value from v$parameter where name = 'nls_date_format'
output: YYYY-MON-DD HH24:MI:SS (so sql developer is over riding this);
3. select * from dba_audit_trail where username = 'MYUSER' order by timestamp desc;
The SQLs from the logon trigger are not captured. how do I capture logon trigger sqls? Not a huge deal, just curious
4. I do not see any alter sessions issued by my user. shouldn't audit all by access capture that? how could my session nls_date_format change without an alter session?
Edited by: Guess2 on Apr 22, 2013 10:44 AM>
Problem: Developers are inserting a Date record into a varchar field.
>
No - they aren't. That is physically impossible. The only thing that can be stored in a 'varchar field' is a string. Oracle considers ANYTHING stored in a character column to be a string.
Date values are stored in DATE columns. Perhaps you meant that developers are converting DATE values to strings and then storing the string in a 'varchar field'?
>
I can't change this process right now. Non-Date info is stored here also.
>
WONDERFUL! Why use a column to stored just one type of data? That is extremely wasteful. Hopefully you store strings that represent numbers in that same column also? It makes the data model so much easier to understand if developers only need to learn one datatype.
>
Would require a code change.
>
The horror!
You should never, ever, EVER use a code change to fix a problem if there is even the slightest possibility that you can change the ENTIRE DATABASE instead.
I've got good news though. You are now on version Oracle 11.2.0.3 and Oracle, after months of protests by some of their largest clients, has finally dropped the exhorbitant license fees for using some of the more esoteric datatypes like DATE and NUMBER.
You should suggest to your manager that they use some of the license fee money saved to hire developers that already know how to design proper data models and use those new-fangled datatypes.
Trust me - once you've made it up that steep learning curve your code will have fewer of those pesky 'dirty data' issues to deal with.
Sure - it means less job security for your current developers. But sometimes you just have to 'take one for the team'! -
Business Rule in trigger not working
Hi,
I have business rule that no one below 18 years should be employed in this system.
I have created a trigger that alerts me so, but when ever I insert someone either over 10 or below, it fires and deos not insert any record, but if I deleted the trigger, everything works fine.
I should have put a check constraint (s_hire_date - s_dob) < 6570 on the table, but I just thought should be able to do it.
Why please?
stops insertion of under 18 years into employee table
CREATE OR REPLACE TRIGGER Tr_new_employee
BEFORE INSERT ON employee for each row
DECLARE s_hire_date DATE;
s_dob date;
begin
select :NEW.hire_date, :NEW.dob into s_hire_date, s_dob from employee
where empid =:new.empid;
IF (s_hire_date - s_dob) < 6570 then
raise_application_error(-20101,'Person too young');
end if;
end;
Many thanks in advance
cube60Hello Warren and All,
Thanks for the code, the trigger did compile successfully, but prevents any kind of insertion whether over 18 or younger.
SQL> CREATE OR REPLACE TRIGGER Tr_new_employee
2 BEFORE INSERT ON employee for each row
3 DECLARE s_hire_date DATE;
4 s_dob date;
5 begin
6
7 select :NEW.hire_date, :NEW.dob into s_hire_date, s_dob from employee
8 where empid =:new.empid;
9
10 IF TRUNC(months_between(s_hire_date,s_dob)/12) < 18 then
11 raise_application_error(-20101,'Person too young');
12 end if;
13 end;
14 /
Trigger created.
SQL> COMMIT;
Commit complete.
SQL> --under 18 to time of hire_date
SQL> EXEC NEW_EMPLOYEE('CHARLES','DICKSON','M','29-JAN-1992','PT2','','','','',sysdate,NULL,09890111
,'HSBC','WANDSWORTH','CURRENT','PR3');
BEGIN NEW_EMPLOYEE('CHARLES','DICKSON','M','29-JAN-1992','PT2','','','','',sysdate,NULL,09890111,'HS
ERROR at line 1:
ORA-01403: no data found
ORA-01403: no data found
ORA-06512: at "SYSTEM.TR_NEW_EMPLOYEE", line 5
ORA-04088: error during execution of trigger 'SYSTEM.TR_NEW_EMPLOYEE'
ORA-06512: at "SYSTEM.NEW_EMPLOYEE", line 26
ORA-06512: at line 1
SQL> COMMIT;
Commit complete.
SQL> --over 18
SQL> EXEC NEW_EMPLOYEE('WARREN','TALENTINO','M','29-JAN-1975','HOURLY','','','','','18-FEB-2001',NUL
L,36901212,'BARCLAYS','SYDENHAM','CURRENT','TEMP7');
BEGIN NEW_EMPLOYEE('WARREN','TALENTINO','M','29-JAN-1975','HOURLY','','','','','18-FEB-2001',NULL,36
ERROR at line 1:
ORA-01403: no data found
ORA-01403: no data found
ORA-06512: at "SYSTEM.TR_NEW_EMPLOYEE", line 5
ORA-04088: error during execution of trigger 'SYSTEM.TR_NEW_EMPLOYEE'
ORA-06512: at "SYSTEM.NEW_EMPLOYEE", line 26
ORA-06512: at line 1
I know your logic is fine, something might be wrong with the trigger even though it created succesfully. It is not doing what it is intended to do.
Many thanks
cube60 -
Airplay not working over wireless, works over ethernet?
I posted this in multiple forums in which it applies to.
Just looking for troubleshooting suggestions from my wireless N MBPro, to my wired ATV2. Here is the rundown (all devices running latest updates):
1)used to work just fine with old router
2)airplay works in all directions, from wireless devises to the wired ATV2
3)updated to a much newer N router from cisco
4)now, airplay works over Ethernet from itunes to ATV2 (and iphone4s to ATV2), ATV2 plays music from my MBPro just fine
5) however airplay fails to work from itunes to ATV2 over wirelesss
6)all wireless connections are sound, it is not a bandwidth problem, it literally says "connecting to apple tv" and never stops or connects
7)itunes sees the ATV2 just fine over both Ethernet and wireless connections, i can select ATV2 as an output even when on wireless
8)it will even ask for the password once i select it
So, any suggestions? I just dont know where I am going wrong, somehow the wireless aspect is the broken link. As a side note, all wireless clients and wired clients are on the same subnet.
Thanks for any suggestions or help!I had the same problem. Disable any IGMP, or IGMP proxy features on your router. As soon as I disabled IGMP proxy on my router everything came up has been working for a while. Lack of driver support on the wireless clients is likely the cause. oh well, at least its working now.
Maybe you are looking for
-
How do I get home sharing to work between my Mac and a PC
I can see my families iTunes libraries on their PC's but I can't home share. The symbol I have by all of their libraries is a square with a music note in it. Between their PC's however they can share and their symbol is a house. It has to be somet
-
My items will not post to my iphone and other events have disappeared What is going on?
-
Java extension for SQL Developer 2.1 (SqlEditor)
Hello, we are developing a java extension for SQL Developer. It was working fine in version 1.5.5 but it seems that some of the java classes were changed in version 2.1 so it does not any more. In the SQL editor, we want to have a context menu action
-
Custom tab page in transaction PPOME
Hi, I have added one custom tab page in the tcode PPOME. I created one custom infotype 9988 and followed the steps given in IMG . I can see the tab page in PPOME but when i click on the tab page, the tab page contains a message as NO SUBSCREEN FOUND.
-
Error when connecting Iphone 4 to computer
When i connect my iphone 4 to the itunes, it says: "This iphone cannot be used because the required software is not installed. Run the itunes installer to remove itunes, then install itunes again."... i already did this once it did not work. can some